Added update server, all other changes are only random variable name and date changes (due to automation sorry)
This commit is contained in:
parent
a41ab73d3f
commit
4077fe88e1
22
README.md
22
README.md
@ -1,4 +1,4 @@
|
|||||||
# Sermon Distributor (1.2.9)
|
# Sermon Distributor (1.3.0)
|
||||||
|
|
||||||
![Sermon Distributor image] (https://raw.githubusercontent.com/SermonDistributor/Joomla-3-Component/master/admin/assets/images/component-300.jpg "The Sermon Distributor")
|
![Sermon Distributor image] (https://raw.githubusercontent.com/SermonDistributor/Joomla-3-Component/master/admin/assets/images/component-300.jpg "The Sermon Distributor")
|
||||||
|
|
||||||
@ -22,38 +22,38 @@ The best way to see all your options is to install this component on you Joomla
|
|||||||
+ *Author*: [Llewellyn van der Merwe] (mailto:llewellyn@vdm.io)
|
+ *Author*: [Llewellyn van der Merwe] (mailto:llewellyn@vdm.io)
|
||||||
+ *Name*: [Sermon Distributor] (https://www.vdm.io/)
|
+ *Name*: [Sermon Distributor] (https://www.vdm.io/)
|
||||||
+ *First Build*: 22nd October, 2015
|
+ *First Build*: 22nd October, 2015
|
||||||
+ *Last Build*: 1st December, 2015
|
+ *Last Build*: 23rd December, 2015
|
||||||
+ *Version*: 1.2.9
|
+ *Version*: 1.3.0
|
||||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
|
||||||
## Build Time :hourglass:
|
## Build Time :hourglass:
|
||||||
|
|
||||||
**126 Hours** or **16 Eight Hour Days** (actual time the author saved -
|
**130 Hours** or **16 Eight Hour Days** (actual time the author saved -
|
||||||
due to [Automated Component Builder] (https://www.vdm.io/joomla-component-builder))
|
due to [Automated Component Builder] (https://www.vdm.io/joomla-component-builder))
|
||||||
|
|
||||||
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
||||||
> never making one mistake or taking any coffee break.)
|
> never making one mistake or taking any coffee break.)
|
||||||
|
|
||||||
+ *Line count*: **45151**
|
+ *Line count*: **46544**
|
||||||
+ *File count*: **347**
|
+ *File count*: **350**
|
||||||
+ *Folder count*: **79**
|
+ *Folder count*: **79**
|
||||||
|
|
||||||
**83 Hours** or **10 Eight Hour Days** (the actual time the author spent)
|
**86 Hours** or **11 Eight Hour Days** (the actual time the author spent)
|
||||||
|
|
||||||
> (with the following break down:
|
> (with the following break down:
|
||||||
> **debugging @32hours** = codingtime / 4;
|
> **debugging @32hours** = codingtime / 4;
|
||||||
> **planning @18hours** = codingtime / 7;
|
> **planning @19hours** = codingtime / 7;
|
||||||
> **mapping @13hours** = codingtime / 10;
|
> **mapping @13hours** = codingtime / 10;
|
||||||
> **office @21hours** = codingtime / 6;)
|
> **office @22hours** = codingtime / 6;)
|
||||||
|
|
||||||
**209 Hours** or **26 Eight Hour Days**
|
**216 Hours** or **27 Eight Hour Days**
|
||||||
(a total of the realistic time frame for this project)
|
(a total of the realistic time frame for this project)
|
||||||
|
|
||||||
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
||||||
> with the normal everyday realities at the office, that includes the component planning, mapping & debugging.)
|
> with the normal everyday realities at the office, that includes the component planning, mapping & debugging.)
|
||||||
|
|
||||||
Project duration: **5.2 weeks** or **1.1 months**
|
Project duration: **5.4 weeks** or **1.1 months**
|
||||||
|
|
||||||
> This **component** was build with a Joomla [Automated Component Builder] (https://www.vdm.io/joomla-component-builder).
|
> This **component** was build with a Joomla [Automated Component Builder] (https://www.vdm.io/joomla-component-builder).
|
||||||
> Developed by [Llewellyn van der Merwe] (mailto:joomla@vdm.io)
|
> Developed by [Llewellyn van der Merwe] (mailto:joomla@vdm.io)
|
@ -1,21 +1,26 @@
|
|||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage admin.css
|
@subpackage admin.css
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
/* CSS Document */
|
/* CSS Document */
|
||||||
.no-click {
|
.no-click {
|
||||||
|
@ -1,21 +1,26 @@
|
|||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage dashboard.css
|
@subpackage dashboard.css
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
/* CSS Document */
|
/* CSS Document */
|
||||||
|
|
||||||
|
@ -1,21 +1,26 @@
|
|||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage help_document.css
|
@subpackage help_document.css
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
/* CSS Document */
|
/* CSS Document */
|
||||||
|
|
||||||
|
@ -1,21 +1,26 @@
|
|||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage help_documents.css
|
@subpackage help_documents.css
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
/* CSS Document */
|
/* CSS Document */
|
||||||
|
|
||||||
|
@ -1,21 +1,26 @@
|
|||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage preacher.css
|
@subpackage preacher.css
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
/* CSS Document */
|
/* CSS Document */
|
||||||
|
|
||||||
|
@ -1,21 +1,26 @@
|
|||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage preachers.css
|
@subpackage preachers.css
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
/* CSS Document */
|
/* CSS Document */
|
||||||
|
|
||||||
|
@ -1,21 +1,26 @@
|
|||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage series.css
|
@subpackage series.css
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
/* CSS Document */
|
/* CSS Document */
|
||||||
|
|
||||||
|
@ -1,21 +1,26 @@
|
|||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage series_list.css
|
@subpackage series_list.css
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
/* CSS Document */
|
/* CSS Document */
|
||||||
|
|
||||||
|
@ -1,21 +1,26 @@
|
|||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage sermon.css
|
@subpackage sermon.css
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
/* CSS Document */
|
/* CSS Document */
|
||||||
|
|
||||||
|
@ -1,21 +1,26 @@
|
|||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage sermons.css
|
@subpackage sermons.css
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
/* CSS Document */
|
/* CSS Document */
|
||||||
|
|
||||||
|
@ -1,21 +1,26 @@
|
|||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage statistic.css
|
@subpackage statistic.css
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
/* CSS Document */
|
/* CSS Document */
|
||||||
|
|
||||||
|
@ -1,21 +1,26 @@
|
|||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage statistics.css
|
@subpackage statistics.css
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
/* CSS Document */
|
/* CSS Document */
|
||||||
|
|
||||||
|
477
admin/config.xml
477
admin/config.xml
File diff suppressed because it is too large
Load Diff
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage controller.php
|
@subpackage controller.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage ajax.json.php
|
@subpackage ajax.json.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage help.php
|
@subpackage help.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage help_document.php
|
@subpackage help_document.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -55,13 +60,13 @@ class SermondistributorControllerHelp_document extends JControllerForm
|
|||||||
*/
|
*/
|
||||||
protected function allowAdd($data = array())
|
protected function allowAdd($data = array())
|
||||||
{
|
{
|
||||||
// [9319] Access check.
|
// [9559] Access check.
|
||||||
$access = JFactory::getUser()->authorise('help_document.access', 'com_sermondistributor');
|
$access = JFactory::getUser()->authorise('help_document.access', 'com_sermondistributor');
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// [9330] In the absense of better information, revert to the component permissions.
|
// [9570] In the absense of better information, revert to the component permissions.
|
||||||
return JFactory::getUser()->authorise('help_document.create', $this->option);
|
return JFactory::getUser()->authorise('help_document.create', $this->option);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,13 +82,13 @@ class SermondistributorControllerHelp_document extends JControllerForm
|
|||||||
*/
|
*/
|
||||||
protected function allowEdit($data = array(), $key = 'id')
|
protected function allowEdit($data = array(), $key = 'id')
|
||||||
{
|
{
|
||||||
// [9473] get user object.
|
// [9713] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [9475] get record id.
|
// [9715] get record id.
|
||||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||||
|
|
||||||
|
|
||||||
// [9482] Access check.
|
// [9722] Access check.
|
||||||
$access = ($user->authorise('help_document.access', 'com_sermondistributor.help_document.' . (int) $recordId) && $user->authorise('help_document.access', 'com_sermondistributor'));
|
$access = ($user->authorise('help_document.access', 'com_sermondistributor.help_document.' . (int) $recordId) && $user->authorise('help_document.access', 'com_sermondistributor'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
@ -92,17 +97,17 @@ class SermondistributorControllerHelp_document extends JControllerForm
|
|||||||
|
|
||||||
if ($recordId)
|
if ($recordId)
|
||||||
{
|
{
|
||||||
// [9491] The record has been set. Check the record permissions.
|
// [9731] The record has been set. Check the record permissions.
|
||||||
$permission = $user->authorise('help_document.edit', 'com_sermondistributor.help_document.' . (int) $recordId);
|
$permission = $user->authorise('help_document.edit', 'com_sermondistributor.help_document.' . (int) $recordId);
|
||||||
if (!$permission && !is_null($permission))
|
if (!$permission && !is_null($permission))
|
||||||
{
|
{
|
||||||
if ($user->authorise('help_document.edit.own', 'com_sermondistributor.help_document.' . $recordId))
|
if ($user->authorise('help_document.edit.own', 'com_sermondistributor.help_document.' . $recordId))
|
||||||
{
|
{
|
||||||
// [9513] Now test the owner is the user.
|
// [9753] Now test the owner is the user.
|
||||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||||
if (empty($ownerId))
|
if (empty($ownerId))
|
||||||
{
|
{
|
||||||
// [9517] Need to do a lookup from the model.
|
// [9757] Need to do a lookup from the model.
|
||||||
$record = $this->getModel()->getItem($recordId);
|
$record = $this->getModel()->getItem($recordId);
|
||||||
|
|
||||||
if (empty($record))
|
if (empty($record))
|
||||||
@ -112,7 +117,7 @@ class SermondistributorControllerHelp_document extends JControllerForm
|
|||||||
$ownerId = $record->created_by;
|
$ownerId = $record->created_by;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [9525] If the owner matches 'me' then allow.
|
// [9765] If the owner matches 'me' then allow.
|
||||||
if ($ownerId == $user->id)
|
if ($ownerId == $user->id)
|
||||||
{
|
{
|
||||||
if ($user->authorise('help_document.edit.own', 'com_sermondistributor'))
|
if ($user->authorise('help_document.edit.own', 'com_sermondistributor'))
|
||||||
@ -124,7 +129,7 @@ class SermondistributorControllerHelp_document extends JControllerForm
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [9547] Since there is no permission, revert to the component permissions.
|
// [9787] Since there is no permission, revert to the component permissions.
|
||||||
return $user->authorise('help_document.edit', $this->option);
|
return $user->authorise('help_document.edit', $this->option);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage help_documents.php
|
@subpackage help_documents.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -43,29 +48,29 @@ class SermondistributorControllerHelp_documents extends JControllerAdmin
|
|||||||
|
|
||||||
public function exportData()
|
public function exportData()
|
||||||
{
|
{
|
||||||
// [7269] Check for request forgeries
|
// [7509] Check for request forgeries
|
||||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||||
// [7271] check if export is allowed for this user.
|
// [7511] check if export is allowed for this user.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
if ($user->authorise('help_document.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
|
if ($user->authorise('help_document.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [7275] Get the input
|
// [7515] Get the input
|
||||||
$input = JFactory::getApplication()->input;
|
$input = JFactory::getApplication()->input;
|
||||||
$pks = $input->post->get('cid', array(), 'array');
|
$pks = $input->post->get('cid', array(), 'array');
|
||||||
// [7278] Sanitize the input
|
// [7518] Sanitize the input
|
||||||
JArrayHelper::toInteger($pks);
|
JArrayHelper::toInteger($pks);
|
||||||
// [7280] Get the model
|
// [7520] Get the model
|
||||||
$model = $this->getModel('Help_documents');
|
$model = $this->getModel('Help_documents');
|
||||||
// [7282] get the data to export
|
// [7522] get the data to export
|
||||||
$data = $model->getExportData($pks);
|
$data = $model->getExportData($pks);
|
||||||
if (SermondistributorHelper::checkArray($data))
|
if (SermondistributorHelper::checkArray($data))
|
||||||
{
|
{
|
||||||
// [7286] now set the data to the spreadsheet
|
// [7526] now set the data to the spreadsheet
|
||||||
$date = JFactory::getDate();
|
$date = JFactory::getDate();
|
||||||
SermondistributorHelper::xls($data,'Help_documents_'.$date->format('jS_F_Y'),'Help documents exported ('.$date->format('jS F, Y').')','help documents');
|
SermondistributorHelper::xls($data,'Help_documents_'.$date->format('jS_F_Y'),'Help documents exported ('.$date->format('jS F, Y').')','help documents');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [7291] Redirect to the list screen with error.
|
// [7531] Redirect to the list screen with error.
|
||||||
$message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED');
|
$message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=help_documents', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=help_documents', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
@ -74,31 +79,31 @@ class SermondistributorControllerHelp_documents extends JControllerAdmin
|
|||||||
|
|
||||||
public function importData()
|
public function importData()
|
||||||
{
|
{
|
||||||
// [7300] Check for request forgeries
|
// [7540] Check for request forgeries
|
||||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||||
// [7302] check if import is allowed for this user.
|
// [7542] check if import is allowed for this user.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
if ($user->authorise('help_document.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
|
if ($user->authorise('help_document.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [7306] Get the import model
|
// [7546] Get the import model
|
||||||
$model = $this->getModel('Help_documents');
|
$model = $this->getModel('Help_documents');
|
||||||
// [7308] get the headers to import
|
// [7548] get the headers to import
|
||||||
$headers = $model->getExImPortHeaders();
|
$headers = $model->getExImPortHeaders();
|
||||||
if (SermondistributorHelper::checkObject($headers))
|
if (SermondistributorHelper::checkObject($headers))
|
||||||
{
|
{
|
||||||
// [7312] Load headers to session.
|
// [7552] Load headers to session.
|
||||||
$session = JFactory::getSession();
|
$session = JFactory::getSession();
|
||||||
$headers = json_encode($headers);
|
$headers = json_encode($headers);
|
||||||
$session->set('help_document_VDM_IMPORTHEADERS', $headers);
|
$session->set('help_document_VDM_IMPORTHEADERS', $headers);
|
||||||
$session->set('backto_VDM_IMPORT', 'help_documents');
|
$session->set('backto_VDM_IMPORT', 'help_documents');
|
||||||
$session->set('dataType_VDM_IMPORTINTO', 'help_document');
|
$session->set('dataType_VDM_IMPORTINTO', 'help_document');
|
||||||
// [7318] Redirect to import view.
|
// [7558] Redirect to import view.
|
||||||
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_HELP_DOCUMENTS');
|
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_HELP_DOCUMENTS');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message);
|
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [7330] Redirect to the list screen with error.
|
// [7570] Redirect to the list screen with error.
|
||||||
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED');
|
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=help_documents', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=help_documents', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage import.php
|
@subpackage import.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage preacher.php
|
@subpackage preacher.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -55,13 +60,13 @@ class SermondistributorControllerPreacher extends JControllerForm
|
|||||||
*/
|
*/
|
||||||
protected function allowAdd($data = array())
|
protected function allowAdd($data = array())
|
||||||
{
|
{
|
||||||
// [9319] Access check.
|
// [9559] Access check.
|
||||||
$access = JFactory::getUser()->authorise('preacher.access', 'com_sermondistributor');
|
$access = JFactory::getUser()->authorise('preacher.access', 'com_sermondistributor');
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// [9330] In the absense of better information, revert to the component permissions.
|
// [9570] In the absense of better information, revert to the component permissions.
|
||||||
return JFactory::getUser()->authorise('preacher.create', $this->option);
|
return JFactory::getUser()->authorise('preacher.create', $this->option);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,13 +82,13 @@ class SermondistributorControllerPreacher extends JControllerForm
|
|||||||
*/
|
*/
|
||||||
protected function allowEdit($data = array(), $key = 'id')
|
protected function allowEdit($data = array(), $key = 'id')
|
||||||
{
|
{
|
||||||
// [9473] get user object.
|
// [9713] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [9475] get record id.
|
// [9715] get record id.
|
||||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||||
|
|
||||||
|
|
||||||
// [9482] Access check.
|
// [9722] Access check.
|
||||||
$access = ($user->authorise('preacher.access', 'com_sermondistributor.preacher.' . (int) $recordId) && $user->authorise('preacher.access', 'com_sermondistributor'));
|
$access = ($user->authorise('preacher.access', 'com_sermondistributor.preacher.' . (int) $recordId) && $user->authorise('preacher.access', 'com_sermondistributor'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
@ -92,17 +97,17 @@ class SermondistributorControllerPreacher extends JControllerForm
|
|||||||
|
|
||||||
if ($recordId)
|
if ($recordId)
|
||||||
{
|
{
|
||||||
// [9491] The record has been set. Check the record permissions.
|
// [9731] The record has been set. Check the record permissions.
|
||||||
$permission = $user->authorise('preacher.edit', 'com_sermondistributor.preacher.' . (int) $recordId);
|
$permission = $user->authorise('preacher.edit', 'com_sermondistributor.preacher.' . (int) $recordId);
|
||||||
if (!$permission && !is_null($permission))
|
if (!$permission && !is_null($permission))
|
||||||
{
|
{
|
||||||
if ($user->authorise('preacher.edit.own', 'com_sermondistributor.preacher.' . $recordId))
|
if ($user->authorise('preacher.edit.own', 'com_sermondistributor.preacher.' . $recordId))
|
||||||
{
|
{
|
||||||
// [9513] Now test the owner is the user.
|
// [9753] Now test the owner is the user.
|
||||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||||
if (empty($ownerId))
|
if (empty($ownerId))
|
||||||
{
|
{
|
||||||
// [9517] Need to do a lookup from the model.
|
// [9757] Need to do a lookup from the model.
|
||||||
$record = $this->getModel()->getItem($recordId);
|
$record = $this->getModel()->getItem($recordId);
|
||||||
|
|
||||||
if (empty($record))
|
if (empty($record))
|
||||||
@ -112,7 +117,7 @@ class SermondistributorControllerPreacher extends JControllerForm
|
|||||||
$ownerId = $record->created_by;
|
$ownerId = $record->created_by;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [9525] If the owner matches 'me' then allow.
|
// [9765] If the owner matches 'me' then allow.
|
||||||
if ($ownerId == $user->id)
|
if ($ownerId == $user->id)
|
||||||
{
|
{
|
||||||
if ($user->authorise('preacher.edit.own', 'com_sermondistributor'))
|
if ($user->authorise('preacher.edit.own', 'com_sermondistributor'))
|
||||||
@ -124,7 +129,7 @@ class SermondistributorControllerPreacher extends JControllerForm
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [9547] Since there is no permission, revert to the component permissions.
|
// [9787] Since there is no permission, revert to the component permissions.
|
||||||
return $user->authorise('preacher.edit', $this->option);
|
return $user->authorise('preacher.edit', $this->option);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage preachers.php
|
@subpackage preachers.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -43,29 +48,29 @@ class SermondistributorControllerPreachers extends JControllerAdmin
|
|||||||
|
|
||||||
public function exportData()
|
public function exportData()
|
||||||
{
|
{
|
||||||
// [7269] Check for request forgeries
|
// [7509] Check for request forgeries
|
||||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||||
// [7271] check if export is allowed for this user.
|
// [7511] check if export is allowed for this user.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
if ($user->authorise('preacher.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
|
if ($user->authorise('preacher.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [7275] Get the input
|
// [7515] Get the input
|
||||||
$input = JFactory::getApplication()->input;
|
$input = JFactory::getApplication()->input;
|
||||||
$pks = $input->post->get('cid', array(), 'array');
|
$pks = $input->post->get('cid', array(), 'array');
|
||||||
// [7278] Sanitize the input
|
// [7518] Sanitize the input
|
||||||
JArrayHelper::toInteger($pks);
|
JArrayHelper::toInteger($pks);
|
||||||
// [7280] Get the model
|
// [7520] Get the model
|
||||||
$model = $this->getModel('Preachers');
|
$model = $this->getModel('Preachers');
|
||||||
// [7282] get the data to export
|
// [7522] get the data to export
|
||||||
$data = $model->getExportData($pks);
|
$data = $model->getExportData($pks);
|
||||||
if (SermondistributorHelper::checkArray($data))
|
if (SermondistributorHelper::checkArray($data))
|
||||||
{
|
{
|
||||||
// [7286] now set the data to the spreadsheet
|
// [7526] now set the data to the spreadsheet
|
||||||
$date = JFactory::getDate();
|
$date = JFactory::getDate();
|
||||||
SermondistributorHelper::xls($data,'Preachers_'.$date->format('jS_F_Y'),'Preachers exported ('.$date->format('jS F, Y').')','preachers');
|
SermondistributorHelper::xls($data,'Preachers_'.$date->format('jS_F_Y'),'Preachers exported ('.$date->format('jS F, Y').')','preachers');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [7291] Redirect to the list screen with error.
|
// [7531] Redirect to the list screen with error.
|
||||||
$message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED');
|
$message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=preachers', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=preachers', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
@ -74,31 +79,31 @@ class SermondistributorControllerPreachers extends JControllerAdmin
|
|||||||
|
|
||||||
public function importData()
|
public function importData()
|
||||||
{
|
{
|
||||||
// [7300] Check for request forgeries
|
// [7540] Check for request forgeries
|
||||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||||
// [7302] check if import is allowed for this user.
|
// [7542] check if import is allowed for this user.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
if ($user->authorise('preacher.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
|
if ($user->authorise('preacher.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [7306] Get the import model
|
// [7546] Get the import model
|
||||||
$model = $this->getModel('Preachers');
|
$model = $this->getModel('Preachers');
|
||||||
// [7308] get the headers to import
|
// [7548] get the headers to import
|
||||||
$headers = $model->getExImPortHeaders();
|
$headers = $model->getExImPortHeaders();
|
||||||
if (SermondistributorHelper::checkObject($headers))
|
if (SermondistributorHelper::checkObject($headers))
|
||||||
{
|
{
|
||||||
// [7312] Load headers to session.
|
// [7552] Load headers to session.
|
||||||
$session = JFactory::getSession();
|
$session = JFactory::getSession();
|
||||||
$headers = json_encode($headers);
|
$headers = json_encode($headers);
|
||||||
$session->set('preacher_VDM_IMPORTHEADERS', $headers);
|
$session->set('preacher_VDM_IMPORTHEADERS', $headers);
|
||||||
$session->set('backto_VDM_IMPORT', 'preachers');
|
$session->set('backto_VDM_IMPORT', 'preachers');
|
||||||
$session->set('dataType_VDM_IMPORTINTO', 'preacher');
|
$session->set('dataType_VDM_IMPORTINTO', 'preacher');
|
||||||
// [7318] Redirect to import view.
|
// [7558] Redirect to import view.
|
||||||
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_PREACHERS');
|
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_PREACHERS');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message);
|
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [7330] Redirect to the list screen with error.
|
// [7570] Redirect to the list screen with error.
|
||||||
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED');
|
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=preachers', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=preachers', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage series.php
|
@subpackage series.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -55,13 +60,13 @@ class SermondistributorControllerSeries extends JControllerForm
|
|||||||
*/
|
*/
|
||||||
protected function allowAdd($data = array())
|
protected function allowAdd($data = array())
|
||||||
{
|
{
|
||||||
// [9319] Access check.
|
// [9559] Access check.
|
||||||
$access = JFactory::getUser()->authorise('series.access', 'com_sermondistributor');
|
$access = JFactory::getUser()->authorise('series.access', 'com_sermondistributor');
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// [9330] In the absense of better information, revert to the component permissions.
|
// [9570] In the absense of better information, revert to the component permissions.
|
||||||
return JFactory::getUser()->authorise('series.create', $this->option);
|
return JFactory::getUser()->authorise('series.create', $this->option);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,13 +82,13 @@ class SermondistributorControllerSeries extends JControllerForm
|
|||||||
*/
|
*/
|
||||||
protected function allowEdit($data = array(), $key = 'id')
|
protected function allowEdit($data = array(), $key = 'id')
|
||||||
{
|
{
|
||||||
// [9473] get user object.
|
// [9713] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [9475] get record id.
|
// [9715] get record id.
|
||||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||||
|
|
||||||
|
|
||||||
// [9482] Access check.
|
// [9722] Access check.
|
||||||
$access = ($user->authorise('series.access', 'com_sermondistributor.series.' . (int) $recordId) && $user->authorise('series.access', 'com_sermondistributor'));
|
$access = ($user->authorise('series.access', 'com_sermondistributor.series.' . (int) $recordId) && $user->authorise('series.access', 'com_sermondistributor'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
@ -92,17 +97,17 @@ class SermondistributorControllerSeries extends JControllerForm
|
|||||||
|
|
||||||
if ($recordId)
|
if ($recordId)
|
||||||
{
|
{
|
||||||
// [9491] The record has been set. Check the record permissions.
|
// [9731] The record has been set. Check the record permissions.
|
||||||
$permission = $user->authorise('series.edit', 'com_sermondistributor.series.' . (int) $recordId);
|
$permission = $user->authorise('series.edit', 'com_sermondistributor.series.' . (int) $recordId);
|
||||||
if (!$permission && !is_null($permission))
|
if (!$permission && !is_null($permission))
|
||||||
{
|
{
|
||||||
if ($user->authorise('series.edit.own', 'com_sermondistributor.series.' . $recordId))
|
if ($user->authorise('series.edit.own', 'com_sermondistributor.series.' . $recordId))
|
||||||
{
|
{
|
||||||
// [9513] Now test the owner is the user.
|
// [9753] Now test the owner is the user.
|
||||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||||
if (empty($ownerId))
|
if (empty($ownerId))
|
||||||
{
|
{
|
||||||
// [9517] Need to do a lookup from the model.
|
// [9757] Need to do a lookup from the model.
|
||||||
$record = $this->getModel()->getItem($recordId);
|
$record = $this->getModel()->getItem($recordId);
|
||||||
|
|
||||||
if (empty($record))
|
if (empty($record))
|
||||||
@ -112,7 +117,7 @@ class SermondistributorControllerSeries extends JControllerForm
|
|||||||
$ownerId = $record->created_by;
|
$ownerId = $record->created_by;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [9525] If the owner matches 'me' then allow.
|
// [9765] If the owner matches 'me' then allow.
|
||||||
if ($ownerId == $user->id)
|
if ($ownerId == $user->id)
|
||||||
{
|
{
|
||||||
if ($user->authorise('series.edit.own', 'com_sermondistributor'))
|
if ($user->authorise('series.edit.own', 'com_sermondistributor'))
|
||||||
@ -124,7 +129,7 @@ class SermondistributorControllerSeries extends JControllerForm
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [9547] Since there is no permission, revert to the component permissions.
|
// [9787] Since there is no permission, revert to the component permissions.
|
||||||
return $user->authorise('series.edit', $this->option);
|
return $user->authorise('series.edit', $this->option);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage series_list.php
|
@subpackage series_list.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -43,29 +48,29 @@ class SermondistributorControllerSeries_list extends JControllerAdmin
|
|||||||
|
|
||||||
public function exportData()
|
public function exportData()
|
||||||
{
|
{
|
||||||
// [7269] Check for request forgeries
|
// [7509] Check for request forgeries
|
||||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||||
// [7271] check if export is allowed for this user.
|
// [7511] check if export is allowed for this user.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
if ($user->authorise('series.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
|
if ($user->authorise('series.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [7275] Get the input
|
// [7515] Get the input
|
||||||
$input = JFactory::getApplication()->input;
|
$input = JFactory::getApplication()->input;
|
||||||
$pks = $input->post->get('cid', array(), 'array');
|
$pks = $input->post->get('cid', array(), 'array');
|
||||||
// [7278] Sanitize the input
|
// [7518] Sanitize the input
|
||||||
JArrayHelper::toInteger($pks);
|
JArrayHelper::toInteger($pks);
|
||||||
// [7280] Get the model
|
// [7520] Get the model
|
||||||
$model = $this->getModel('Series_list');
|
$model = $this->getModel('Series_list');
|
||||||
// [7282] get the data to export
|
// [7522] get the data to export
|
||||||
$data = $model->getExportData($pks);
|
$data = $model->getExportData($pks);
|
||||||
if (SermondistributorHelper::checkArray($data))
|
if (SermondistributorHelper::checkArray($data))
|
||||||
{
|
{
|
||||||
// [7286] now set the data to the spreadsheet
|
// [7526] now set the data to the spreadsheet
|
||||||
$date = JFactory::getDate();
|
$date = JFactory::getDate();
|
||||||
SermondistributorHelper::xls($data,'Series_list_'.$date->format('jS_F_Y'),'Series list exported ('.$date->format('jS F, Y').')','series list');
|
SermondistributorHelper::xls($data,'Series_list_'.$date->format('jS_F_Y'),'Series list exported ('.$date->format('jS F, Y').')','series list');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [7291] Redirect to the list screen with error.
|
// [7531] Redirect to the list screen with error.
|
||||||
$message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED');
|
$message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=series_list', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=series_list', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
@ -74,31 +79,31 @@ class SermondistributorControllerSeries_list extends JControllerAdmin
|
|||||||
|
|
||||||
public function importData()
|
public function importData()
|
||||||
{
|
{
|
||||||
// [7300] Check for request forgeries
|
// [7540] Check for request forgeries
|
||||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||||
// [7302] check if import is allowed for this user.
|
// [7542] check if import is allowed for this user.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
if ($user->authorise('series.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
|
if ($user->authorise('series.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [7306] Get the import model
|
// [7546] Get the import model
|
||||||
$model = $this->getModel('Series_list');
|
$model = $this->getModel('Series_list');
|
||||||
// [7308] get the headers to import
|
// [7548] get the headers to import
|
||||||
$headers = $model->getExImPortHeaders();
|
$headers = $model->getExImPortHeaders();
|
||||||
if (SermondistributorHelper::checkObject($headers))
|
if (SermondistributorHelper::checkObject($headers))
|
||||||
{
|
{
|
||||||
// [7312] Load headers to session.
|
// [7552] Load headers to session.
|
||||||
$session = JFactory::getSession();
|
$session = JFactory::getSession();
|
||||||
$headers = json_encode($headers);
|
$headers = json_encode($headers);
|
||||||
$session->set('series_VDM_IMPORTHEADERS', $headers);
|
$session->set('series_VDM_IMPORTHEADERS', $headers);
|
||||||
$session->set('backto_VDM_IMPORT', 'series_list');
|
$session->set('backto_VDM_IMPORT', 'series_list');
|
||||||
$session->set('dataType_VDM_IMPORTINTO', 'series');
|
$session->set('dataType_VDM_IMPORTINTO', 'series');
|
||||||
// [7318] Redirect to import view.
|
// [7558] Redirect to import view.
|
||||||
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_SERIES_LIST');
|
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_SERIES_LIST');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message);
|
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [7330] Redirect to the list screen with error.
|
// [7570] Redirect to the list screen with error.
|
||||||
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED');
|
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=series_list', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=series_list', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage sermon.php
|
@subpackage sermon.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -55,10 +60,10 @@ class SermondistributorControllerSermon extends JControllerForm
|
|||||||
*/
|
*/
|
||||||
protected function allowAdd($data = array())
|
protected function allowAdd($data = array())
|
||||||
{
|
{
|
||||||
// [9274] get the user object
|
// [9514] get the user object
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
// [9279] Access check.
|
// [9519] Access check.
|
||||||
$access = $user->authorise('sermon.access', 'com_sermondistributor');
|
$access = $user->authorise('sermon.access', 'com_sermondistributor');
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
@ -69,13 +74,13 @@ class SermondistributorControllerSermon extends JControllerForm
|
|||||||
|
|
||||||
if ($categoryId)
|
if ($categoryId)
|
||||||
{
|
{
|
||||||
// [9290] If the category has been passed in the URL check it.
|
// [9530] If the category has been passed in the URL check it.
|
||||||
$allow = $user->authorise('core.create', $this->option . '.sermons.category.' . $categoryId);
|
$allow = $user->authorise('core.create', $this->option . '.sermons.category.' . $categoryId);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($allow === null)
|
if ($allow === null)
|
||||||
{
|
{
|
||||||
// [9299] In the absense of better information, revert to the component permissions.
|
// [9539] In the absense of better information, revert to the component permissions.
|
||||||
return $user->authorise('sermon.create', $this->option);
|
return $user->authorise('sermon.create', $this->option);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -95,13 +100,13 @@ class SermondistributorControllerSermon extends JControllerForm
|
|||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
protected function allowEdit($data = array(), $key = 'id')
|
protected function allowEdit($data = array(), $key = 'id')
|
||||||
{ // [9377] get user object.
|
{ // [9617] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [9379] get record id.
|
// [9619] get record id.
|
||||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||||
|
|
||||||
|
|
||||||
// [9386] Access check.
|
// [9626] Access check.
|
||||||
$access = ($user->authorise('sermon.access', 'com_sermondistributor.sermon.' . (int) $recordId) && $user->authorise('sermon.access', 'com_sermondistributor'));
|
$access = ($user->authorise('sermon.access', 'com_sermondistributor.sermon.' . (int) $recordId) && $user->authorise('sermon.access', 'com_sermondistributor'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
@ -110,17 +115,17 @@ class SermondistributorControllerSermon extends JControllerForm
|
|||||||
|
|
||||||
if ($recordId)
|
if ($recordId)
|
||||||
{
|
{
|
||||||
// [9395] The record has been set. Check the record permissions.
|
// [9635] The record has been set. Check the record permissions.
|
||||||
$permission = $user->authorise('sermon.edit', 'com_sermondistributor.sermon.' . (int) $recordId);
|
$permission = $user->authorise('sermon.edit', 'com_sermondistributor.sermon.' . (int) $recordId);
|
||||||
if (!$permission && !is_null($permission))
|
if (!$permission && !is_null($permission))
|
||||||
{
|
{
|
||||||
if ($user->authorise('sermon.edit.own', 'com_sermondistributor.sermon.' . $recordId))
|
if ($user->authorise('sermon.edit.own', 'com_sermondistributor.sermon.' . $recordId))
|
||||||
{
|
{
|
||||||
// [9417] Fallback on edit.own. Now test the owner is the user.
|
// [9657] Fallback on edit.own. Now test the owner is the user.
|
||||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||||
if (empty($ownerId))
|
if (empty($ownerId))
|
||||||
{
|
{
|
||||||
// [9421] Need to do a lookup from the model.
|
// [9661] Need to do a lookup from the model.
|
||||||
$record = $this->getModel()->getItem($recordId);
|
$record = $this->getModel()->getItem($recordId);
|
||||||
|
|
||||||
if (empty($record))
|
if (empty($record))
|
||||||
@ -130,7 +135,7 @@ class SermondistributorControllerSermon extends JControllerForm
|
|||||||
$ownerId = $record->created_by;
|
$ownerId = $record->created_by;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [9429] If the owner matches 'me' then do the test.
|
// [9669] If the owner matches 'me' then do the test.
|
||||||
if ($ownerId == $user->id)
|
if ($ownerId == $user->id)
|
||||||
{
|
{
|
||||||
if ($user->authorise('sermon.edit.own', 'com_sermondistributor'))
|
if ($user->authorise('sermon.edit.own', 'com_sermondistributor'))
|
||||||
@ -146,7 +151,7 @@ class SermondistributorControllerSermon extends JControllerForm
|
|||||||
|
|
||||||
if ($categoryId)
|
if ($categoryId)
|
||||||
{
|
{
|
||||||
// [9451] The category has been set. Check the category permissions.
|
// [9691] The category has been set. Check the category permissions.
|
||||||
$catpermission = $user->authorise('core.edit', $this->option . '.sermons.category.' . $categoryId);
|
$catpermission = $user->authorise('core.edit', $this->option . '.sermons.category.' . $categoryId);
|
||||||
if (!$catpermission && !is_null($catpermission))
|
if (!$catpermission && !is_null($catpermission))
|
||||||
{
|
{
|
||||||
@ -154,7 +159,7 @@ class SermondistributorControllerSermon extends JControllerForm
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [9461] Since there is no permission, revert to the component permissions.
|
// [9701] Since there is no permission, revert to the component permissions.
|
||||||
return $user->authorise('sermon.edit', $this->option);
|
return $user->authorise('sermon.edit', $this->option);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage sermondistributor.php
|
@subpackage sermondistributor.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage sermons.php
|
@subpackage sermons.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -43,29 +48,29 @@ class SermondistributorControllerSermons extends JControllerAdmin
|
|||||||
|
|
||||||
public function exportData()
|
public function exportData()
|
||||||
{
|
{
|
||||||
// [7269] Check for request forgeries
|
// [7509] Check for request forgeries
|
||||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||||
// [7271] check if export is allowed for this user.
|
// [7511] check if export is allowed for this user.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
if ($user->authorise('sermon.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
|
if ($user->authorise('sermon.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [7275] Get the input
|
// [7515] Get the input
|
||||||
$input = JFactory::getApplication()->input;
|
$input = JFactory::getApplication()->input;
|
||||||
$pks = $input->post->get('cid', array(), 'array');
|
$pks = $input->post->get('cid', array(), 'array');
|
||||||
// [7278] Sanitize the input
|
// [7518] Sanitize the input
|
||||||
JArrayHelper::toInteger($pks);
|
JArrayHelper::toInteger($pks);
|
||||||
// [7280] Get the model
|
// [7520] Get the model
|
||||||
$model = $this->getModel('Sermons');
|
$model = $this->getModel('Sermons');
|
||||||
// [7282] get the data to export
|
// [7522] get the data to export
|
||||||
$data = $model->getExportData($pks);
|
$data = $model->getExportData($pks);
|
||||||
if (SermondistributorHelper::checkArray($data))
|
if (SermondistributorHelper::checkArray($data))
|
||||||
{
|
{
|
||||||
// [7286] now set the data to the spreadsheet
|
// [7526] now set the data to the spreadsheet
|
||||||
$date = JFactory::getDate();
|
$date = JFactory::getDate();
|
||||||
SermondistributorHelper::xls($data,'Sermons_'.$date->format('jS_F_Y'),'Sermons exported ('.$date->format('jS F, Y').')','sermons');
|
SermondistributorHelper::xls($data,'Sermons_'.$date->format('jS_F_Y'),'Sermons exported ('.$date->format('jS F, Y').')','sermons');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [7291] Redirect to the list screen with error.
|
// [7531] Redirect to the list screen with error.
|
||||||
$message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED');
|
$message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=sermons', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=sermons', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
@ -74,31 +79,31 @@ class SermondistributorControllerSermons extends JControllerAdmin
|
|||||||
|
|
||||||
public function importData()
|
public function importData()
|
||||||
{
|
{
|
||||||
// [7300] Check for request forgeries
|
// [7540] Check for request forgeries
|
||||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||||
// [7302] check if import is allowed for this user.
|
// [7542] check if import is allowed for this user.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
if ($user->authorise('sermon.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
|
if ($user->authorise('sermon.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [7306] Get the import model
|
// [7546] Get the import model
|
||||||
$model = $this->getModel('Sermons');
|
$model = $this->getModel('Sermons');
|
||||||
// [7308] get the headers to import
|
// [7548] get the headers to import
|
||||||
$headers = $model->getExImPortHeaders();
|
$headers = $model->getExImPortHeaders();
|
||||||
if (SermondistributorHelper::checkObject($headers))
|
if (SermondistributorHelper::checkObject($headers))
|
||||||
{
|
{
|
||||||
// [7312] Load headers to session.
|
// [7552] Load headers to session.
|
||||||
$session = JFactory::getSession();
|
$session = JFactory::getSession();
|
||||||
$headers = json_encode($headers);
|
$headers = json_encode($headers);
|
||||||
$session->set('sermon_VDM_IMPORTHEADERS', $headers);
|
$session->set('sermon_VDM_IMPORTHEADERS', $headers);
|
||||||
$session->set('backto_VDM_IMPORT', 'sermons');
|
$session->set('backto_VDM_IMPORT', 'sermons');
|
||||||
$session->set('dataType_VDM_IMPORTINTO', 'sermon');
|
$session->set('dataType_VDM_IMPORTINTO', 'sermon');
|
||||||
// [7318] Redirect to import view.
|
// [7558] Redirect to import view.
|
||||||
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_SERMONS');
|
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_SERMONS');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message);
|
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [7330] Redirect to the list screen with error.
|
// [7570] Redirect to the list screen with error.
|
||||||
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED');
|
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=sermons', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=sermons', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage statistic.php
|
@subpackage statistic.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -55,13 +60,13 @@ class SermondistributorControllerStatistic extends JControllerForm
|
|||||||
*/
|
*/
|
||||||
protected function allowAdd($data = array())
|
protected function allowAdd($data = array())
|
||||||
{
|
{
|
||||||
// [9319] Access check.
|
// [9559] Access check.
|
||||||
$access = JFactory::getUser()->authorise('statistic.access', 'com_sermondistributor');
|
$access = JFactory::getUser()->authorise('statistic.access', 'com_sermondistributor');
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// [9330] In the absense of better information, revert to the component permissions.
|
// [9570] In the absense of better information, revert to the component permissions.
|
||||||
return JFactory::getUser()->authorise('statistic.create', $this->option);
|
return JFactory::getUser()->authorise('statistic.create', $this->option);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,13 +82,13 @@ class SermondistributorControllerStatistic extends JControllerForm
|
|||||||
*/
|
*/
|
||||||
protected function allowEdit($data = array(), $key = 'id')
|
protected function allowEdit($data = array(), $key = 'id')
|
||||||
{
|
{
|
||||||
// [9473] get user object.
|
// [9713] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [9475] get record id.
|
// [9715] get record id.
|
||||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||||
|
|
||||||
|
|
||||||
// [9482] Access check.
|
// [9722] Access check.
|
||||||
$access = ($user->authorise('statistic.access', 'com_sermondistributor.statistic.' . (int) $recordId) && $user->authorise('statistic.access', 'com_sermondistributor'));
|
$access = ($user->authorise('statistic.access', 'com_sermondistributor.statistic.' . (int) $recordId) && $user->authorise('statistic.access', 'com_sermondistributor'));
|
||||||
if (!$access)
|
if (!$access)
|
||||||
{
|
{
|
||||||
@ -92,17 +97,17 @@ class SermondistributorControllerStatistic extends JControllerForm
|
|||||||
|
|
||||||
if ($recordId)
|
if ($recordId)
|
||||||
{
|
{
|
||||||
// [9491] The record has been set. Check the record permissions.
|
// [9731] The record has been set. Check the record permissions.
|
||||||
$permission = $user->authorise('statistic.edit', 'com_sermondistributor.statistic.' . (int) $recordId);
|
$permission = $user->authorise('statistic.edit', 'com_sermondistributor.statistic.' . (int) $recordId);
|
||||||
if (!$permission && !is_null($permission))
|
if (!$permission && !is_null($permission))
|
||||||
{
|
{
|
||||||
if ($user->authorise('statistic.edit.own', 'com_sermondistributor.statistic.' . $recordId))
|
if ($user->authorise('statistic.edit.own', 'com_sermondistributor.statistic.' . $recordId))
|
||||||
{
|
{
|
||||||
// [9513] Now test the owner is the user.
|
// [9753] Now test the owner is the user.
|
||||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||||
if (empty($ownerId))
|
if (empty($ownerId))
|
||||||
{
|
{
|
||||||
// [9517] Need to do a lookup from the model.
|
// [9757] Need to do a lookup from the model.
|
||||||
$record = $this->getModel()->getItem($recordId);
|
$record = $this->getModel()->getItem($recordId);
|
||||||
|
|
||||||
if (empty($record))
|
if (empty($record))
|
||||||
@ -112,7 +117,7 @@ class SermondistributorControllerStatistic extends JControllerForm
|
|||||||
$ownerId = $record->created_by;
|
$ownerId = $record->created_by;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [9525] If the owner matches 'me' then allow.
|
// [9765] If the owner matches 'me' then allow.
|
||||||
if ($ownerId == $user->id)
|
if ($ownerId == $user->id)
|
||||||
{
|
{
|
||||||
if ($user->authorise('statistic.edit.own', 'com_sermondistributor'))
|
if ($user->authorise('statistic.edit.own', 'com_sermondistributor'))
|
||||||
@ -124,7 +129,7 @@ class SermondistributorControllerStatistic extends JControllerForm
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [9547] Since there is no permission, revert to the component permissions.
|
// [9787] Since there is no permission, revert to the component permissions.
|
||||||
return $user->authorise('statistic.edit', $this->option);
|
return $user->authorise('statistic.edit', $this->option);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage statistics.php
|
@subpackage statistics.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -43,29 +48,29 @@ class SermondistributorControllerStatistics extends JControllerAdmin
|
|||||||
|
|
||||||
public function exportData()
|
public function exportData()
|
||||||
{
|
{
|
||||||
// [7269] Check for request forgeries
|
// [7509] Check for request forgeries
|
||||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||||
// [7271] check if export is allowed for this user.
|
// [7511] check if export is allowed for this user.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
if ($user->authorise('statistic.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
|
if ($user->authorise('statistic.export', 'com_sermondistributor') && $user->authorise('core.export', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [7275] Get the input
|
// [7515] Get the input
|
||||||
$input = JFactory::getApplication()->input;
|
$input = JFactory::getApplication()->input;
|
||||||
$pks = $input->post->get('cid', array(), 'array');
|
$pks = $input->post->get('cid', array(), 'array');
|
||||||
// [7278] Sanitize the input
|
// [7518] Sanitize the input
|
||||||
JArrayHelper::toInteger($pks);
|
JArrayHelper::toInteger($pks);
|
||||||
// [7280] Get the model
|
// [7520] Get the model
|
||||||
$model = $this->getModel('Statistics');
|
$model = $this->getModel('Statistics');
|
||||||
// [7282] get the data to export
|
// [7522] get the data to export
|
||||||
$data = $model->getExportData($pks);
|
$data = $model->getExportData($pks);
|
||||||
if (SermondistributorHelper::checkArray($data))
|
if (SermondistributorHelper::checkArray($data))
|
||||||
{
|
{
|
||||||
// [7286] now set the data to the spreadsheet
|
// [7526] now set the data to the spreadsheet
|
||||||
$date = JFactory::getDate();
|
$date = JFactory::getDate();
|
||||||
SermondistributorHelper::xls($data,'Statistics_'.$date->format('jS_F_Y'),'Statistics exported ('.$date->format('jS F, Y').')','statistics');
|
SermondistributorHelper::xls($data,'Statistics_'.$date->format('jS_F_Y'),'Statistics exported ('.$date->format('jS F, Y').')','statistics');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [7291] Redirect to the list screen with error.
|
// [7531] Redirect to the list screen with error.
|
||||||
$message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED');
|
$message = JText::_('COM_SERMONDISTRIBUTOR_EXPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=statistics', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=statistics', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
@ -74,31 +79,31 @@ class SermondistributorControllerStatistics extends JControllerAdmin
|
|||||||
|
|
||||||
public function importData()
|
public function importData()
|
||||||
{
|
{
|
||||||
// [7300] Check for request forgeries
|
// [7540] Check for request forgeries
|
||||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||||
// [7302] check if import is allowed for this user.
|
// [7542] check if import is allowed for this user.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
if ($user->authorise('statistic.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
|
if ($user->authorise('statistic.import', 'com_sermondistributor') && $user->authorise('core.import', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [7306] Get the import model
|
// [7546] Get the import model
|
||||||
$model = $this->getModel('Statistics');
|
$model = $this->getModel('Statistics');
|
||||||
// [7308] get the headers to import
|
// [7548] get the headers to import
|
||||||
$headers = $model->getExImPortHeaders();
|
$headers = $model->getExImPortHeaders();
|
||||||
if (SermondistributorHelper::checkObject($headers))
|
if (SermondistributorHelper::checkObject($headers))
|
||||||
{
|
{
|
||||||
// [7312] Load headers to session.
|
// [7552] Load headers to session.
|
||||||
$session = JFactory::getSession();
|
$session = JFactory::getSession();
|
||||||
$headers = json_encode($headers);
|
$headers = json_encode($headers);
|
||||||
$session->set('statistic_VDM_IMPORTHEADERS', $headers);
|
$session->set('statistic_VDM_IMPORTHEADERS', $headers);
|
||||||
$session->set('backto_VDM_IMPORT', 'statistics');
|
$session->set('backto_VDM_IMPORT', 'statistics');
|
||||||
$session->set('dataType_VDM_IMPORTINTO', 'statistic');
|
$session->set('dataType_VDM_IMPORTINTO', 'statistic');
|
||||||
// [7318] Redirect to import view.
|
// [7558] Redirect to import view.
|
||||||
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_STATISTICS');
|
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_SELECT_FILE_FOR_STATISTICS');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message);
|
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=import', false), $message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [7330] Redirect to the list screen with error.
|
// [7570] Redirect to the list screen with error.
|
||||||
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED');
|
$message = JText::_('COM_SERMONDISTRIBUTOR_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=statistics', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_sermondistributor&view=statistics', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage batch_.php
|
@subpackage batch_.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('JPATH_PLATFORM') or die;
|
defined('JPATH_PLATFORM') or die;
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage sermondistributor.php
|
@subpackage sermondistributor.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -548,23 +553,23 @@ abstract class SermondistributorHelper
|
|||||||
$targetgroups = json_decode($help->groups, true);
|
$targetgroups = json_decode($help->groups, true);
|
||||||
if (!array_intersect($targetgroups, $groups))
|
if (!array_intersect($targetgroups, $groups))
|
||||||
{
|
{
|
||||||
// [1383] if user not in those target groups then remove the item
|
// [1470] if user not in those target groups then remove the item
|
||||||
unset($helps[$nr]);
|
unset($helps[$nr]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [1388] set the return type
|
// [1475] set the return type
|
||||||
switch ($help->type)
|
switch ($help->type)
|
||||||
{
|
{
|
||||||
// [1391] set joomla article
|
// [1478] set joomla article
|
||||||
case 1:
|
case 1:
|
||||||
return self::loadArticleLink($help->article);
|
return self::loadArticleLink($help->article);
|
||||||
break;
|
break;
|
||||||
// [1395] set help text
|
// [1482] set help text
|
||||||
case 2:
|
case 2:
|
||||||
return self::loadHelpTextLink($help->id);
|
return self::loadHelpTextLink($help->id);
|
||||||
break;
|
break;
|
||||||
// [1399] set Link
|
// [1486] set Link
|
||||||
case 3:
|
case 3:
|
||||||
return $help->url;
|
return $help->url;
|
||||||
break;
|
break;
|
||||||
@ -667,8 +672,18 @@ abstract class SermondistributorHelper
|
|||||||
'timepicker' ),
|
'timepicker' ),
|
||||||
'data-uk-tooltip' => array(
|
'data-uk-tooltip' => array(
|
||||||
'tooltip' ),
|
'tooltip' ),
|
||||||
|
'uk-placeholder' => array(
|
||||||
|
'placeholder' ),
|
||||||
|
'uk-dotnav' => array(
|
||||||
|
'dotnav' ),
|
||||||
|
'uk-slidenav' => array(
|
||||||
|
'slidenav' ),
|
||||||
|
'uk-form' => array(
|
||||||
|
'form-advanced' ),
|
||||||
|
'uk-progress' => array(
|
||||||
|
'progress' ),
|
||||||
'upload-drop' => array(
|
'upload-drop' => array(
|
||||||
'upload' )
|
'upload', 'form-file' )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -683,7 +698,7 @@ abstract class SermondistributorHelper
|
|||||||
{
|
{
|
||||||
if (strpos($content,'class="uk-') !== false)
|
if (strpos($content,'class="uk-') !== false)
|
||||||
{
|
{
|
||||||
// [2597] reset
|
// [2714] reset
|
||||||
$temp = array();
|
$temp = array();
|
||||||
foreach (self::$uk_components as $looking => $add)
|
foreach (self::$uk_components as $looking => $add)
|
||||||
{
|
{
|
||||||
@ -692,15 +707,15 @@ abstract class SermondistributorHelper
|
|||||||
$temp[] = $looking;
|
$temp[] = $looking;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [2606] make sure uikit is loaded to config
|
// [2723] make sure uikit is loaded to config
|
||||||
if (strpos($content,'class="uk-') !== false)
|
if (strpos($content,'class="uk-') !== false)
|
||||||
{
|
{
|
||||||
self::$uikit = true;
|
self::$uikit = true;
|
||||||
}
|
}
|
||||||
// [2611] sorter
|
// [2728] sorter
|
||||||
if (self::checkArray($temp))
|
if (self::checkArray($temp))
|
||||||
{
|
{
|
||||||
// [2614] merger
|
// [2731] merger
|
||||||
if (self::checkArray($classes))
|
if (self::checkArray($classes))
|
||||||
{
|
{
|
||||||
$newTemp = array_merge($temp,$classes);
|
$newTemp = array_merge($temp,$classes);
|
||||||
@ -721,37 +736,37 @@ abstract class SermondistributorHelper
|
|||||||
*/
|
*/
|
||||||
public static function xls($rows,$fileName = null,$title = null,$subjectTab = null,$creator = 'Vast Development Method',$description = null,$category = null,$keywords = null,$modified = null)
|
public static function xls($rows,$fileName = null,$title = null,$subjectTab = null,$creator = 'Vast Development Method',$description = null,$category = null,$keywords = null,$modified = null)
|
||||||
{
|
{
|
||||||
// [1438] set the user
|
// [1525] set the user
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
// [1441] set fieldname if not set
|
// [1528] set fieldname if not set
|
||||||
if (!$fileName)
|
if (!$fileName)
|
||||||
{
|
{
|
||||||
$fileName = 'exported_'.JFactory::getDate()->format('jS_F_Y');
|
$fileName = 'exported_'.JFactory::getDate()->format('jS_F_Y');
|
||||||
}
|
}
|
||||||
// [1446] set modiefied if not set
|
// [1533] set modiefied if not set
|
||||||
if (!$modified)
|
if (!$modified)
|
||||||
{
|
{
|
||||||
$modified = $user->name;
|
$modified = $user->name;
|
||||||
}
|
}
|
||||||
// [1451] set title if not set
|
// [1538] set title if not set
|
||||||
if (!$title)
|
if (!$title)
|
||||||
{
|
{
|
||||||
$title = 'Book1';
|
$title = 'Book1';
|
||||||
}
|
}
|
||||||
// [1456] set tab name if not set
|
// [1543] set tab name if not set
|
||||||
if (!$subjectTab)
|
if (!$subjectTab)
|
||||||
{
|
{
|
||||||
$subjectTab = 'Sheet1';
|
$subjectTab = 'Sheet1';
|
||||||
}
|
}
|
||||||
|
|
||||||
// [1462] make sure the file is loaded
|
// [1549] make sure the file is loaded
|
||||||
JLoader::import('PHPExcel', JPATH_COMPONENT_ADMINISTRATOR . '/helpers');
|
JLoader::import('PHPExcel', JPATH_COMPONENT_ADMINISTRATOR . '/helpers');
|
||||||
|
|
||||||
// [1465] Create new PHPExcel object
|
// [1552] Create new PHPExcel object
|
||||||
$objPHPExcel = new PHPExcel();
|
$objPHPExcel = new PHPExcel();
|
||||||
|
|
||||||
// [1468] Set document properties
|
// [1555] Set document properties
|
||||||
$objPHPExcel->getProperties()->setCreator($creator)
|
$objPHPExcel->getProperties()->setCreator($creator)
|
||||||
->setCompany('Vast Development Method')
|
->setCompany('Vast Development Method')
|
||||||
->setLastModifiedBy($modified)
|
->setLastModifiedBy($modified)
|
||||||
@ -770,7 +785,7 @@ abstract class SermondistributorHelper
|
|||||||
$objPHPExcel->getProperties()->setCategory($category);
|
$objPHPExcel->getProperties()->setCategory($category);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [1487] Some styles
|
// [1574] Some styles
|
||||||
$headerStyles = array(
|
$headerStyles = array(
|
||||||
'font' => array(
|
'font' => array(
|
||||||
'bold' => true,
|
'bold' => true,
|
||||||
@ -792,7 +807,7 @@ abstract class SermondistributorHelper
|
|||||||
'name' => 'Verdana'
|
'name' => 'Verdana'
|
||||||
));
|
));
|
||||||
|
|
||||||
// [1509] Add some data
|
// [1596] Add some data
|
||||||
if (self::checkArray($rows))
|
if (self::checkArray($rows))
|
||||||
{
|
{
|
||||||
$i = 1;
|
$i = 1;
|
||||||
@ -819,20 +834,20 @@ abstract class SermondistributorHelper
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [1536] Rename worksheet
|
// [1623] Rename worksheet
|
||||||
$objPHPExcel->getActiveSheet()->setTitle($subjectTab);
|
$objPHPExcel->getActiveSheet()->setTitle($subjectTab);
|
||||||
|
|
||||||
// [1539] Set active sheet index to the first sheet, so Excel opens this as the first sheet
|
// [1626] Set active sheet index to the first sheet, so Excel opens this as the first sheet
|
||||||
$objPHPExcel->setActiveSheetIndex(0);
|
$objPHPExcel->setActiveSheetIndex(0);
|
||||||
|
|
||||||
// [1542] Redirect output to a client's web browser (Excel5)
|
// [1629] Redirect output to a client's web browser (Excel5)
|
||||||
header('Content-Type: application/vnd.ms-excel');
|
header('Content-Type: application/vnd.ms-excel');
|
||||||
header('Content-Disposition: attachment;filename="'.$fileName.'.xls"');
|
header('Content-Disposition: attachment;filename="'.$fileName.'.xls"');
|
||||||
header('Cache-Control: max-age=0');
|
header('Cache-Control: max-age=0');
|
||||||
// [1546] If you're serving to IE 9, then the following may be needed
|
// [1633] If you're serving to IE 9, then the following may be needed
|
||||||
header('Cache-Control: max-age=1');
|
header('Cache-Control: max-age=1');
|
||||||
|
|
||||||
// [1549] If you're serving to IE over SSL, then the following may be needed
|
// [1636] If you're serving to IE over SSL, then the following may be needed
|
||||||
header ('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past
|
header ('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past
|
||||||
header ('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); // always modified
|
header ('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); // always modified
|
||||||
header ('Cache-Control: cache, must-revalidate'); // HTTP/1.1
|
header ('Cache-Control: cache, must-revalidate'); // HTTP/1.1
|
||||||
@ -848,20 +863,20 @@ abstract class SermondistributorHelper
|
|||||||
*/
|
*/
|
||||||
public static function getFileHeaders($dataType)
|
public static function getFileHeaders($dataType)
|
||||||
{
|
{
|
||||||
// [1565] make sure the file is loaded
|
// [1652] make sure the file is loaded
|
||||||
JLoader::import('PHPExcel', JPATH_COMPONENT_ADMINISTRATOR . '/helpers');
|
JLoader::import('PHPExcel', JPATH_COMPONENT_ADMINISTRATOR . '/helpers');
|
||||||
// [1567] get session object
|
// [1654] get session object
|
||||||
$session = JFactory::getSession();
|
$session = JFactory::getSession();
|
||||||
$package = $session->get('package', null);
|
$package = $session->get('package', null);
|
||||||
$package = json_decode($package, true);
|
$package = json_decode($package, true);
|
||||||
// [1571] set the headers
|
// [1658] set the headers
|
||||||
if(isset($package['dir']))
|
if(isset($package['dir']))
|
||||||
{
|
{
|
||||||
$inputFileType = PHPExcel_IOFactory::identify($package['dir']);
|
$inputFileType = PHPExcel_IOFactory::identify($package['dir']);
|
||||||
$excelReader = PHPExcel_IOFactory::createReader($inputFileType);
|
$excelReader = PHPExcel_IOFactory::createReader($inputFileType);
|
||||||
$excelReader->setReadDataOnly(true);
|
$excelReader->setReadDataOnly(true);
|
||||||
$excelObj = $excelReader->load($package['dir']);
|
$excelObj = $excelReader->load($package['dir']);
|
||||||
$headers = array();
|
$headers = array();
|
||||||
foreach ($excelObj->getActiveSheet()->getRowIterator() as $row)
|
foreach ($excelObj->getActiveSheet()->getRowIterator() as $row)
|
||||||
{
|
{
|
||||||
if($row->getRowIndex() == 1)
|
if($row->getRowIndex() == 1)
|
||||||
|
@ -148,6 +148,10 @@ COM_SERMONDISTRIBUTOR_CONFIG_GRID="Grid"
|
|||||||
COM_SERMONDISTRIBUTOR_CONFIG_JPEG=".jpeg"
|
COM_SERMONDISTRIBUTOR_CONFIG_JPEG=".jpeg"
|
||||||
COM_SERMONDISTRIBUTOR_CONFIG_JPG=".jpg"
|
COM_SERMONDISTRIBUTOR_CONFIG_JPG=".jpg"
|
||||||
COM_SERMONDISTRIBUTOR_CONFIG_LEGACY="Legacy"
|
COM_SERMONDISTRIBUTOR_CONFIG_LEGACY="Legacy"
|
||||||
|
COM_SERMONDISTRIBUTOR_CONFIG_LICENSE_KEY_DESC="Add your license key here."
|
||||||
|
COM_SERMONDISTRIBUTOR_CONFIG_LICENSE_KEY_LABEL="License Key"
|
||||||
|
COM_SERMONDISTRIBUTOR_CONFIG_LICENSE_KEY_NOTE_DESC="To get updates you must add the license key here that you recieved from Vast Development Method"
|
||||||
|
COM_SERMONDISTRIBUTOR_CONFIG_LICENSE_KEY_NOTE_LABEL="Your License Key"
|
||||||
COM_SERMONDISTRIBUTOR_CONFIG_LINES="Lines"
|
COM_SERMONDISTRIBUTOR_CONFIG_LINES="Lines"
|
||||||
COM_SERMONDISTRIBUTOR_CONFIG_LINK_ENCRYPTION_DESCRIPTION="Add the key to use when download link option is set to encrypted."
|
COM_SERMONDISTRIBUTOR_CONFIG_LINK_ENCRYPTION_DESCRIPTION="Add the key to use when download link option is set to encrypted."
|
||||||
COM_SERMONDISTRIBUTOR_CONFIG_LINK_ENCRYPTION_HINT="DBwAHPAqoFWZfDWZo6sd)E3cv2oMTG^r"
|
COM_SERMONDISTRIBUTOR_CONFIG_LINK_ENCRYPTION_HINT="DBwAHPAqoFWZfDWZo6sd)E3cv2oMTG^r"
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage batchselection.php
|
@subpackage batchselection.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('JPATH_BASE') or die;
|
defined('JPATH_BASE') or die;
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_fullwidth.php
|
@subpackage details_fullwidth.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_under.php
|
@subpackage details_under.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage metadata.php
|
@subpackage metadata.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_fullwidth.php
|
@subpackage details_fullwidth.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage metadata.php
|
@subpackage metadata.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,29 +1,34 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage sermons_fullwidth.php
|
@subpackage sermons_fullwidth.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->juisermons;
|
$items = $displayData->jfzsermons;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_sermondistributor&view=sermons&task=sermon.edit";
|
$edit = "index.php?option=com_sermondistributor&view=sermons&task=sermon.edit";
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_fullwidth.php
|
@subpackage details_fullwidth.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage metadata.php
|
@subpackage metadata.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,29 +1,34 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage sermons_fullwidth.php
|
@subpackage sermons_fullwidth.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->wxrsermons;
|
$items = $displayData->ekusermons;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_sermondistributor&view=sermons&task=sermon.edit";
|
$edit = "index.php?option=com_sermondistributor&view=sermons&task=sermon.edit";
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_fullwidth.php
|
@subpackage details_fullwidth.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_under.php
|
@subpackage details_under.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage files_fullwidth.php
|
@subpackage files_fullwidth.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage metadata.php
|
@subpackage metadata.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,29 +1,34 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage stastics_fullwidth.php
|
@subpackage stastics_fullwidth.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->zgfstastics;
|
$items = $displayData->qfostastics;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_sermondistributor&view=statistics&task=statistic.edit";
|
$edit = "index.php?option=com_sermondistributor&view=statistics&task=statistic.edit";
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage metadata.php
|
@subpackage metadata.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage ajax.php
|
@subpackage ajax.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -38,7 +43,7 @@ class SermondistributorModelAjax extends JModelList
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// [8916] Used in sermon
|
// [9156] Used in sermon
|
||||||
/**
|
/**
|
||||||
* Check and Set Dropbox local listing
|
* Check and Set Dropbox local listing
|
||||||
**/
|
**/
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage articles.php
|
@subpackage articles.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -45,36 +50,36 @@ class JFormFieldArticles extends JFormFieldList
|
|||||||
*/
|
*/
|
||||||
protected function getInput()
|
protected function getInput()
|
||||||
{
|
{
|
||||||
// [7691] see if we should add buttons
|
// [7931] see if we should add buttons
|
||||||
$setButton = $this->getAttribute('button');
|
$setButton = $this->getAttribute('button');
|
||||||
// [7693] get html
|
// [7933] get html
|
||||||
$html = parent::getInput();
|
$html = parent::getInput();
|
||||||
// [7695] if true set button
|
// [7935] if true set button
|
||||||
if ($setButton === 'true')
|
if ($setButton === 'true')
|
||||||
{
|
{
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [7699] only add if user allowed to create article
|
// [7939] only add if user allowed to create article
|
||||||
if ($user->authorise('core.create', 'com_sermondistributor'))
|
if ($user->authorise('core.create', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [7717] get the input from url
|
// [7957] get the input from url
|
||||||
$jinput = JFactory::getApplication()->input;
|
$jinput = JFactory::getApplication()->input;
|
||||||
// [7719] get the view name & id
|
// [7959] get the view name & id
|
||||||
$values = $jinput->getArray(array(
|
$values = $jinput->getArray(array(
|
||||||
'id' => 'int',
|
'id' => 'int',
|
||||||
'view' => 'word'
|
'view' => 'word'
|
||||||
));
|
));
|
||||||
// [7724] check if new item
|
// [7964] check if new item
|
||||||
$ref = '';
|
$ref = '';
|
||||||
if (!is_null($values['id']) && strlen($values['view']))
|
if (!is_null($values['id']) && strlen($values['view']))
|
||||||
{
|
{
|
||||||
// [7728] only load referal if not new item.
|
// [7968] only load referal if not new item.
|
||||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||||
}
|
}
|
||||||
// [7731] build the button
|
// [7971] build the button
|
||||||
$button = '<a class="btn btn-small btn-success"
|
$button = '<a class="btn btn-small btn-success"
|
||||||
href="index.php?option=com_sermondistributor&view=article&layout=edit'.$ref.'" >
|
href="index.php?option=com_sermondistributor&view=article&layout=edit'.$ref.'" >
|
||||||
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
||||||
// [7735] return the button attached to input field
|
// [7975] return the button attached to input field
|
||||||
return $html . $button;
|
return $html . $button;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage dropboxfiles.php
|
@subpackage dropboxfiles.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -45,36 +50,36 @@ class JFormFieldDropboxfiles extends JFormFieldList
|
|||||||
*/
|
*/
|
||||||
protected function getInput()
|
protected function getInput()
|
||||||
{
|
{
|
||||||
// [7691] see if we should add buttons
|
// [7931] see if we should add buttons
|
||||||
$setButton = $this->getAttribute('button');
|
$setButton = $this->getAttribute('button');
|
||||||
// [7693] get html
|
// [7933] get html
|
||||||
$html = parent::getInput();
|
$html = parent::getInput();
|
||||||
// [7695] if true set button
|
// [7935] if true set button
|
||||||
if ($setButton === 'true')
|
if ($setButton === 'true')
|
||||||
{
|
{
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [7699] only add if user allowed to create
|
// [7939] only add if user allowed to create
|
||||||
if ($user->authorise('core.create', 'com_sermondistributor'))
|
if ($user->authorise('core.create', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [7717] get the input from url
|
// [7957] get the input from url
|
||||||
$jinput = JFactory::getApplication()->input;
|
$jinput = JFactory::getApplication()->input;
|
||||||
// [7719] get the view name & id
|
// [7959] get the view name & id
|
||||||
$values = $jinput->getArray(array(
|
$values = $jinput->getArray(array(
|
||||||
'id' => 'int',
|
'id' => 'int',
|
||||||
'view' => 'word'
|
'view' => 'word'
|
||||||
));
|
));
|
||||||
// [7724] check if new item
|
// [7964] check if new item
|
||||||
$ref = '';
|
$ref = '';
|
||||||
if (!is_null($values['id']) && strlen($values['view']))
|
if (!is_null($values['id']) && strlen($values['view']))
|
||||||
{
|
{
|
||||||
// [7728] only load referal if not new item.
|
// [7968] only load referal if not new item.
|
||||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||||
}
|
}
|
||||||
// [7731] build the button
|
// [7971] build the button
|
||||||
$button = '<a class="btn btn-small btn-success"
|
$button = '<a class="btn btn-small btn-success"
|
||||||
href="index.php?option=com_sermondistributor&view=&layout=edit'.$ref.'" >
|
href="index.php?option=com_sermondistributor&view=&layout=edit'.$ref.'" >
|
||||||
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
||||||
// [7735] return the button attached to input field
|
// [7975] return the button attached to input field
|
||||||
return $html . $button;
|
return $html . $button;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage localfiles.php
|
@subpackage localfiles.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -45,36 +50,36 @@ class JFormFieldLocalfiles extends JFormFieldList
|
|||||||
*/
|
*/
|
||||||
protected function getInput()
|
protected function getInput()
|
||||||
{
|
{
|
||||||
// [7691] see if we should add buttons
|
// [7931] see if we should add buttons
|
||||||
$setButton = $this->getAttribute('button');
|
$setButton = $this->getAttribute('button');
|
||||||
// [7693] get html
|
// [7933] get html
|
||||||
$html = parent::getInput();
|
$html = parent::getInput();
|
||||||
// [7695] if true set button
|
// [7935] if true set button
|
||||||
if ($setButton === 'true')
|
if ($setButton === 'true')
|
||||||
{
|
{
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [7699] only add if user allowed to create
|
// [7939] only add if user allowed to create
|
||||||
if ($user->authorise('core.create', 'com_sermondistributor'))
|
if ($user->authorise('core.create', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [7717] get the input from url
|
// [7957] get the input from url
|
||||||
$jinput = JFactory::getApplication()->input;
|
$jinput = JFactory::getApplication()->input;
|
||||||
// [7719] get the view name & id
|
// [7959] get the view name & id
|
||||||
$values = $jinput->getArray(array(
|
$values = $jinput->getArray(array(
|
||||||
'id' => 'int',
|
'id' => 'int',
|
||||||
'view' => 'word'
|
'view' => 'word'
|
||||||
));
|
));
|
||||||
// [7724] check if new item
|
// [7964] check if new item
|
||||||
$ref = '';
|
$ref = '';
|
||||||
if (!is_null($values['id']) && strlen($values['view']))
|
if (!is_null($values['id']) && strlen($values['view']))
|
||||||
{
|
{
|
||||||
// [7728] only load referal if not new item.
|
// [7968] only load referal if not new item.
|
||||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||||
}
|
}
|
||||||
// [7731] build the button
|
// [7971] build the button
|
||||||
$button = '<a class="btn btn-small btn-success"
|
$button = '<a class="btn btn-small btn-success"
|
||||||
href="index.php?option=com_sermondistributor&view=&layout=edit'.$ref.'" >
|
href="index.php?option=com_sermondistributor&view=&layout=edit'.$ref.'" >
|
||||||
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
||||||
// [7735] return the button attached to input field
|
// [7975] return the button attached to input field
|
||||||
return $html . $button;
|
return $html . $button;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage preachers.php
|
@subpackage preachers.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -45,36 +50,36 @@ class JFormFieldPreachers extends JFormFieldList
|
|||||||
*/
|
*/
|
||||||
protected function getInput()
|
protected function getInput()
|
||||||
{
|
{
|
||||||
// [7691] see if we should add buttons
|
// [7931] see if we should add buttons
|
||||||
$setButton = $this->getAttribute('button');
|
$setButton = $this->getAttribute('button');
|
||||||
// [7693] get html
|
// [7933] get html
|
||||||
$html = parent::getInput();
|
$html = parent::getInput();
|
||||||
// [7695] if true set button
|
// [7935] if true set button
|
||||||
if ($setButton === 'true')
|
if ($setButton === 'true')
|
||||||
{
|
{
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [7699] only add if user allowed to create preacher
|
// [7939] only add if user allowed to create preacher
|
||||||
if ($user->authorise('preacher.create', 'com_sermondistributor'))
|
if ($user->authorise('preacher.create', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [7717] get the input from url
|
// [7957] get the input from url
|
||||||
$jinput = JFactory::getApplication()->input;
|
$jinput = JFactory::getApplication()->input;
|
||||||
// [7719] get the view name & id
|
// [7959] get the view name & id
|
||||||
$values = $jinput->getArray(array(
|
$values = $jinput->getArray(array(
|
||||||
'id' => 'int',
|
'id' => 'int',
|
||||||
'view' => 'word'
|
'view' => 'word'
|
||||||
));
|
));
|
||||||
// [7724] check if new item
|
// [7964] check if new item
|
||||||
$ref = '';
|
$ref = '';
|
||||||
if (!is_null($values['id']) && strlen($values['view']))
|
if (!is_null($values['id']) && strlen($values['view']))
|
||||||
{
|
{
|
||||||
// [7728] only load referal if not new item.
|
// [7968] only load referal if not new item.
|
||||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||||
}
|
}
|
||||||
// [7731] build the button
|
// [7971] build the button
|
||||||
$button = '<a class="btn btn-small btn-success"
|
$button = '<a class="btn btn-small btn-success"
|
||||||
href="index.php?option=com_sermondistributor&view=preacher&layout=edit'.$ref.'" >
|
href="index.php?option=com_sermondistributor&view=preacher&layout=edit'.$ref.'" >
|
||||||
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
||||||
// [7735] return the button attached to input field
|
// [7975] return the button attached to input field
|
||||||
return $html . $button;
|
return $html . $button;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage series.php
|
@subpackage series.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -45,36 +50,36 @@ class JFormFieldSeries extends JFormFieldList
|
|||||||
*/
|
*/
|
||||||
protected function getInput()
|
protected function getInput()
|
||||||
{
|
{
|
||||||
// [7691] see if we should add buttons
|
// [7931] see if we should add buttons
|
||||||
$setButton = $this->getAttribute('button');
|
$setButton = $this->getAttribute('button');
|
||||||
// [7693] get html
|
// [7933] get html
|
||||||
$html = parent::getInput();
|
$html = parent::getInput();
|
||||||
// [7695] if true set button
|
// [7935] if true set button
|
||||||
if ($setButton === 'true')
|
if ($setButton === 'true')
|
||||||
{
|
{
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [7699] only add if user allowed to create series
|
// [7939] only add if user allowed to create series
|
||||||
if ($user->authorise('series.create', 'com_sermondistributor'))
|
if ($user->authorise('series.create', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [7717] get the input from url
|
// [7957] get the input from url
|
||||||
$jinput = JFactory::getApplication()->input;
|
$jinput = JFactory::getApplication()->input;
|
||||||
// [7719] get the view name & id
|
// [7959] get the view name & id
|
||||||
$values = $jinput->getArray(array(
|
$values = $jinput->getArray(array(
|
||||||
'id' => 'int',
|
'id' => 'int',
|
||||||
'view' => 'word'
|
'view' => 'word'
|
||||||
));
|
));
|
||||||
// [7724] check if new item
|
// [7964] check if new item
|
||||||
$ref = '';
|
$ref = '';
|
||||||
if (!is_null($values['id']) && strlen($values['view']))
|
if (!is_null($values['id']) && strlen($values['view']))
|
||||||
{
|
{
|
||||||
// [7728] only load referal if not new item.
|
// [7968] only load referal if not new item.
|
||||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||||
}
|
}
|
||||||
// [7731] build the button
|
// [7971] build the button
|
||||||
$button = '<a class="btn btn-small btn-success"
|
$button = '<a class="btn btn-small btn-success"
|
||||||
href="index.php?option=com_sermondistributor&view=series&layout=edit'.$ref.'" >
|
href="index.php?option=com_sermondistributor&view=series&layout=edit'.$ref.'" >
|
||||||
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
||||||
// [7735] return the button attached to input field
|
// [7975] return the button attached to input field
|
||||||
return $html . $button;
|
return $html . $button;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage sermon.php
|
@subpackage sermon.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -45,36 +50,36 @@ class JFormFieldSermon extends JFormFieldList
|
|||||||
*/
|
*/
|
||||||
protected function getInput()
|
protected function getInput()
|
||||||
{
|
{
|
||||||
// [7691] see if we should add buttons
|
// [7931] see if we should add buttons
|
||||||
$setButton = $this->getAttribute('button');
|
$setButton = $this->getAttribute('button');
|
||||||
// [7693] get html
|
// [7933] get html
|
||||||
$html = parent::getInput();
|
$html = parent::getInput();
|
||||||
// [7695] if true set button
|
// [7935] if true set button
|
||||||
if ($setButton === 'true')
|
if ($setButton === 'true')
|
||||||
{
|
{
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [7699] only add if user allowed to create sermon
|
// [7939] only add if user allowed to create sermon
|
||||||
if ($user->authorise('sermon.create', 'com_sermondistributor'))
|
if ($user->authorise('sermon.create', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [7717] get the input from url
|
// [7957] get the input from url
|
||||||
$jinput = JFactory::getApplication()->input;
|
$jinput = JFactory::getApplication()->input;
|
||||||
// [7719] get the view name & id
|
// [7959] get the view name & id
|
||||||
$values = $jinput->getArray(array(
|
$values = $jinput->getArray(array(
|
||||||
'id' => 'int',
|
'id' => 'int',
|
||||||
'view' => 'word'
|
'view' => 'word'
|
||||||
));
|
));
|
||||||
// [7724] check if new item
|
// [7964] check if new item
|
||||||
$ref = '';
|
$ref = '';
|
||||||
if (!is_null($values['id']) && strlen($values['view']))
|
if (!is_null($values['id']) && strlen($values['view']))
|
||||||
{
|
{
|
||||||
// [7728] only load referal if not new item.
|
// [7968] only load referal if not new item.
|
||||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||||
}
|
}
|
||||||
// [7731] build the button
|
// [7971] build the button
|
||||||
$button = '<a class="btn btn-small btn-success"
|
$button = '<a class="btn btn-small btn-success"
|
||||||
href="index.php?option=com_sermondistributor&view=sermon&layout=edit'.$ref.'" >
|
href="index.php?option=com_sermondistributor&view=sermon&layout=edit'.$ref.'" >
|
||||||
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
<span class="icon-new icon-white"></span>' . JText::_('COM_SERMONDISTRIBUTOR_NEW') . '</a>';
|
||||||
// [7735] return the button attached to input field
|
// [7975] return the button attached to input field
|
||||||
return $html . $button;
|
return $html . $button;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,55 +1,60 @@
|
|||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage help_document.js
|
@subpackage help_document.js
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// Some Global Values
|
// Some Global Values
|
||||||
jform_RCpdpBjqah_required = false;
|
jform_PDcWyEnUDa_required = false;
|
||||||
jform_tzmdvkqrgG_required = false;
|
jform_oNdbymxKWg_required = false;
|
||||||
jform_tOoDUnWPZO_required = false;
|
jform_QQNYqXlxnF_required = false;
|
||||||
jform_ZRloSvLdIL_required = false;
|
jform_xgjGfFertA_required = false;
|
||||||
|
|
||||||
// Initial Script
|
// Initial Script
|
||||||
jQuery(document).ready(function()
|
jQuery(document).ready(function()
|
||||||
{
|
{
|
||||||
var location_TUtVLEk = jQuery("#jform_location input[type='radio']:checked").val();
|
var location_pLIjTGg = jQuery("#jform_location input[type='radio']:checked").val();
|
||||||
TUtVLEk(location_TUtVLEk);
|
pLIjTGg(location_pLIjTGg);
|
||||||
|
|
||||||
var location_gUAUNQj = jQuery("#jform_location input[type='radio']:checked").val();
|
var location_Ajshqyg = jQuery("#jform_location input[type='radio']:checked").val();
|
||||||
gUAUNQj(location_gUAUNQj);
|
Ajshqyg(location_Ajshqyg);
|
||||||
|
|
||||||
var type_RCpdpBj = jQuery("#jform_type").val();
|
var type_PDcWyEn = jQuery("#jform_type").val();
|
||||||
RCpdpBj(type_RCpdpBj);
|
PDcWyEn(type_PDcWyEn);
|
||||||
|
|
||||||
var type_tzmdvkq = jQuery("#jform_type").val();
|
var type_oNdbymx = jQuery("#jform_type").val();
|
||||||
tzmdvkq(type_tzmdvkq);
|
oNdbymx(type_oNdbymx);
|
||||||
|
|
||||||
var type_tOoDUnW = jQuery("#jform_type").val();
|
var type_QQNYqXl = jQuery("#jform_type").val();
|
||||||
tOoDUnW(type_tOoDUnW);
|
QQNYqXl(type_QQNYqXl);
|
||||||
|
|
||||||
var target_ZRloSvL = jQuery("#jform_target input[type='radio']:checked").val();
|
var target_xgjGfFe = jQuery("#jform_target input[type='radio']:checked").val();
|
||||||
ZRloSvL(target_ZRloSvL);
|
xgjGfFe(target_xgjGfFe);
|
||||||
});
|
});
|
||||||
|
|
||||||
// the TUtVLEk function
|
// the pLIjTGg function
|
||||||
function TUtVLEk(location_TUtVLEk)
|
function pLIjTGg(location_pLIjTGg)
|
||||||
{
|
{
|
||||||
// [8008] set the function logic
|
// [8248] set the function logic
|
||||||
if (location_TUtVLEk == 1)
|
if (location_pLIjTGg == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_admin_view').closest('.control-group').show();
|
jQuery('#jform_admin_view').closest('.control-group').show();
|
||||||
}
|
}
|
||||||
@ -59,11 +64,11 @@ function TUtVLEk(location_TUtVLEk)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the gUAUNQj function
|
// the Ajshqyg function
|
||||||
function gUAUNQj(location_gUAUNQj)
|
function Ajshqyg(location_Ajshqyg)
|
||||||
{
|
{
|
||||||
// [8008] set the function logic
|
// [8248] set the function logic
|
||||||
if (location_gUAUNQj == 2)
|
if (location_Ajshqyg == 2)
|
||||||
{
|
{
|
||||||
jQuery('#jform_site_view').closest('.control-group').show();
|
jQuery('#jform_site_view').closest('.control-group').show();
|
||||||
}
|
}
|
||||||
@ -73,198 +78,198 @@ function gUAUNQj(location_gUAUNQj)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the RCpdpBj function
|
// the PDcWyEn function
|
||||||
function RCpdpBj(type_RCpdpBj)
|
function PDcWyEn(type_PDcWyEn)
|
||||||
{
|
{
|
||||||
if (isSet(type_RCpdpBj) && type_RCpdpBj.constructor !== Array)
|
if (isSet(type_PDcWyEn) && type_PDcWyEn.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_RCpdpBj = type_RCpdpBj;
|
var temp_PDcWyEn = type_PDcWyEn;
|
||||||
var type_RCpdpBj = [];
|
var type_PDcWyEn = [];
|
||||||
type_RCpdpBj.push(temp_RCpdpBj);
|
type_PDcWyEn.push(temp_PDcWyEn);
|
||||||
}
|
}
|
||||||
else if (!isSet(type_RCpdpBj))
|
else if (!isSet(type_PDcWyEn))
|
||||||
{
|
{
|
||||||
var type_RCpdpBj = [];
|
var type_PDcWyEn = [];
|
||||||
}
|
}
|
||||||
var type = type_RCpdpBj.some(type_RCpdpBj_SomeFunc);
|
var type = type_PDcWyEn.some(type_PDcWyEn_SomeFunc);
|
||||||
|
|
||||||
|
|
||||||
// [7986] set this function logic
|
// [8226] set this function logic
|
||||||
if (type)
|
if (type)
|
||||||
{
|
{
|
||||||
jQuery('#jform_url').closest('.control-group').show();
|
jQuery('#jform_url').closest('.control-group').show();
|
||||||
if (jform_RCpdpBjqah_required)
|
if (jform_PDcWyEnUDa_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('url',0);
|
updateFieldRequired('url',0);
|
||||||
jQuery('#jform_url').prop('required','required');
|
jQuery('#jform_url').prop('required','required');
|
||||||
jQuery('#jform_url').attr('aria-required',true);
|
jQuery('#jform_url').attr('aria-required',true);
|
||||||
jQuery('#jform_url').addClass('required');
|
jQuery('#jform_url').addClass('required');
|
||||||
jform_RCpdpBjqah_required = false;
|
jform_PDcWyEnUDa_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_url').closest('.control-group').hide();
|
jQuery('#jform_url').closest('.control-group').hide();
|
||||||
if (!jform_RCpdpBjqah_required)
|
if (!jform_PDcWyEnUDa_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('url',1);
|
updateFieldRequired('url',1);
|
||||||
jQuery('#jform_url').removeAttr('required');
|
jQuery('#jform_url').removeAttr('required');
|
||||||
jQuery('#jform_url').removeAttr('aria-required');
|
jQuery('#jform_url').removeAttr('aria-required');
|
||||||
jQuery('#jform_url').removeClass('required');
|
jQuery('#jform_url').removeClass('required');
|
||||||
jform_RCpdpBjqah_required = true;
|
jform_PDcWyEnUDa_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the RCpdpBj Some function
|
// the PDcWyEn Some function
|
||||||
function type_RCpdpBj_SomeFunc(type_RCpdpBj)
|
function type_PDcWyEn_SomeFunc(type_PDcWyEn)
|
||||||
{
|
{
|
||||||
// [7973] set the function logic
|
// [8213] set the function logic
|
||||||
if (type_RCpdpBj == 3)
|
if (type_PDcWyEn == 3)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// the tzmdvkq function
|
// the oNdbymx function
|
||||||
function tzmdvkq(type_tzmdvkq)
|
function oNdbymx(type_oNdbymx)
|
||||||
{
|
{
|
||||||
if (isSet(type_tzmdvkq) && type_tzmdvkq.constructor !== Array)
|
if (isSet(type_oNdbymx) && type_oNdbymx.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_tzmdvkq = type_tzmdvkq;
|
var temp_oNdbymx = type_oNdbymx;
|
||||||
var type_tzmdvkq = [];
|
var type_oNdbymx = [];
|
||||||
type_tzmdvkq.push(temp_tzmdvkq);
|
type_oNdbymx.push(temp_oNdbymx);
|
||||||
}
|
}
|
||||||
else if (!isSet(type_tzmdvkq))
|
else if (!isSet(type_oNdbymx))
|
||||||
{
|
{
|
||||||
var type_tzmdvkq = [];
|
var type_oNdbymx = [];
|
||||||
}
|
}
|
||||||
var type = type_tzmdvkq.some(type_tzmdvkq_SomeFunc);
|
var type = type_oNdbymx.some(type_oNdbymx_SomeFunc);
|
||||||
|
|
||||||
|
|
||||||
// [7986] set this function logic
|
// [8226] set this function logic
|
||||||
if (type)
|
if (type)
|
||||||
{
|
{
|
||||||
jQuery('#jform_article').closest('.control-group').show();
|
jQuery('#jform_article').closest('.control-group').show();
|
||||||
if (jform_tzmdvkqrgG_required)
|
if (jform_oNdbymxKWg_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('article',0);
|
updateFieldRequired('article',0);
|
||||||
jQuery('#jform_article').prop('required','required');
|
jQuery('#jform_article').prop('required','required');
|
||||||
jQuery('#jform_article').attr('aria-required',true);
|
jQuery('#jform_article').attr('aria-required',true);
|
||||||
jQuery('#jform_article').addClass('required');
|
jQuery('#jform_article').addClass('required');
|
||||||
jform_tzmdvkqrgG_required = false;
|
jform_oNdbymxKWg_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_article').closest('.control-group').hide();
|
jQuery('#jform_article').closest('.control-group').hide();
|
||||||
if (!jform_tzmdvkqrgG_required)
|
if (!jform_oNdbymxKWg_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('article',1);
|
updateFieldRequired('article',1);
|
||||||
jQuery('#jform_article').removeAttr('required');
|
jQuery('#jform_article').removeAttr('required');
|
||||||
jQuery('#jform_article').removeAttr('aria-required');
|
jQuery('#jform_article').removeAttr('aria-required');
|
||||||
jQuery('#jform_article').removeClass('required');
|
jQuery('#jform_article').removeClass('required');
|
||||||
jform_tzmdvkqrgG_required = true;
|
jform_oNdbymxKWg_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the tzmdvkq Some function
|
// the oNdbymx Some function
|
||||||
function type_tzmdvkq_SomeFunc(type_tzmdvkq)
|
function type_oNdbymx_SomeFunc(type_oNdbymx)
|
||||||
{
|
{
|
||||||
// [7973] set the function logic
|
// [8213] set the function logic
|
||||||
if (type_tzmdvkq == 1)
|
if (type_oNdbymx == 1)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// the tOoDUnW function
|
// the QQNYqXl function
|
||||||
function tOoDUnW(type_tOoDUnW)
|
function QQNYqXl(type_QQNYqXl)
|
||||||
{
|
{
|
||||||
if (isSet(type_tOoDUnW) && type_tOoDUnW.constructor !== Array)
|
if (isSet(type_QQNYqXl) && type_QQNYqXl.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_tOoDUnW = type_tOoDUnW;
|
var temp_QQNYqXl = type_QQNYqXl;
|
||||||
var type_tOoDUnW = [];
|
var type_QQNYqXl = [];
|
||||||
type_tOoDUnW.push(temp_tOoDUnW);
|
type_QQNYqXl.push(temp_QQNYqXl);
|
||||||
}
|
}
|
||||||
else if (!isSet(type_tOoDUnW))
|
else if (!isSet(type_QQNYqXl))
|
||||||
{
|
{
|
||||||
var type_tOoDUnW = [];
|
var type_QQNYqXl = [];
|
||||||
}
|
}
|
||||||
var type = type_tOoDUnW.some(type_tOoDUnW_SomeFunc);
|
var type = type_QQNYqXl.some(type_QQNYqXl_SomeFunc);
|
||||||
|
|
||||||
|
|
||||||
// [7986] set this function logic
|
// [8226] set this function logic
|
||||||
if (type)
|
if (type)
|
||||||
{
|
{
|
||||||
jQuery('#jform_content-lbl').closest('.control-group').show();
|
jQuery('#jform_content-lbl').closest('.control-group').show();
|
||||||
if (jform_tOoDUnWPZO_required)
|
if (jform_QQNYqXlxnF_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('content',0);
|
updateFieldRequired('content',0);
|
||||||
jQuery('#jform_content').prop('required','required');
|
jQuery('#jform_content').prop('required','required');
|
||||||
jQuery('#jform_content').attr('aria-required',true);
|
jQuery('#jform_content').attr('aria-required',true);
|
||||||
jQuery('#jform_content').addClass('required');
|
jQuery('#jform_content').addClass('required');
|
||||||
jform_tOoDUnWPZO_required = false;
|
jform_QQNYqXlxnF_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_content-lbl').closest('.control-group').hide();
|
jQuery('#jform_content-lbl').closest('.control-group').hide();
|
||||||
if (!jform_tOoDUnWPZO_required)
|
if (!jform_QQNYqXlxnF_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('content',1);
|
updateFieldRequired('content',1);
|
||||||
jQuery('#jform_content').removeAttr('required');
|
jQuery('#jform_content').removeAttr('required');
|
||||||
jQuery('#jform_content').removeAttr('aria-required');
|
jQuery('#jform_content').removeAttr('aria-required');
|
||||||
jQuery('#jform_content').removeClass('required');
|
jQuery('#jform_content').removeClass('required');
|
||||||
jform_tOoDUnWPZO_required = true;
|
jform_QQNYqXlxnF_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the tOoDUnW Some function
|
// the QQNYqXl Some function
|
||||||
function type_tOoDUnW_SomeFunc(type_tOoDUnW)
|
function type_QQNYqXl_SomeFunc(type_QQNYqXl)
|
||||||
{
|
{
|
||||||
// [7973] set the function logic
|
// [8213] set the function logic
|
||||||
if (type_tOoDUnW == 2)
|
if (type_QQNYqXl == 2)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// the ZRloSvL function
|
// the xgjGfFe function
|
||||||
function ZRloSvL(target_ZRloSvL)
|
function xgjGfFe(target_xgjGfFe)
|
||||||
{
|
{
|
||||||
// [8008] set the function logic
|
// [8248] set the function logic
|
||||||
if (target_ZRloSvL == 1)
|
if (target_xgjGfFe == 1)
|
||||||
{
|
{
|
||||||
jQuery('#jform_groups').closest('.control-group').show();
|
jQuery('#jform_groups').closest('.control-group').show();
|
||||||
if (jform_ZRloSvLdIL_required)
|
if (jform_xgjGfFertA_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('groups',0);
|
updateFieldRequired('groups',0);
|
||||||
jQuery('#jform_groups').prop('required','required');
|
jQuery('#jform_groups').prop('required','required');
|
||||||
jQuery('#jform_groups').attr('aria-required',true);
|
jQuery('#jform_groups').attr('aria-required',true);
|
||||||
jQuery('#jform_groups').addClass('required');
|
jQuery('#jform_groups').addClass('required');
|
||||||
jform_ZRloSvLdIL_required = false;
|
jform_xgjGfFertA_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_groups').closest('.control-group').hide();
|
jQuery('#jform_groups').closest('.control-group').hide();
|
||||||
if (!jform_ZRloSvLdIL_required)
|
if (!jform_xgjGfFertA_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('groups',1);
|
updateFieldRequired('groups',1);
|
||||||
jQuery('#jform_groups').removeAttr('required');
|
jQuery('#jform_groups').removeAttr('required');
|
||||||
jQuery('#jform_groups').removeAttr('aria-required');
|
jQuery('#jform_groups').removeAttr('aria-required');
|
||||||
jQuery('#jform_groups').removeClass('required');
|
jQuery('#jform_groups').removeClass('required');
|
||||||
jform_ZRloSvLdIL_required = true;
|
jform_xgjGfFertA_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,15 +4,15 @@
|
|||||||
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
|
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
|
||||||
>
|
>
|
||||||
<fieldset name="details">
|
<fieldset name="details">
|
||||||
<!-- [11019] Default Fields. -->
|
<!-- [11263] Default Fields. -->
|
||||||
<!-- [11020] Id Field. Type: Text (joomla) -->
|
<!-- [11264] Id Field. Type: Text (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="id"
|
name="id"
|
||||||
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
|
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
|
||||||
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
|
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
/>
|
/>
|
||||||
<!-- [11027] Date Created Field. Type: Calendar (joomla) -->
|
<!-- [11271] Date Created Field. Type: Calendar (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="created"
|
name="created"
|
||||||
type="calendar"
|
type="calendar"
|
||||||
@ -22,14 +22,14 @@
|
|||||||
format="%Y-%m-%d %H:%M:%S"
|
format="%Y-%m-%d %H:%M:%S"
|
||||||
filter="user_utc"
|
filter="user_utc"
|
||||||
/>
|
/>
|
||||||
<!-- [11038] User Created Field. Type: User (joomla) -->
|
<!-- [11282] User Created Field. Type: User (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="created_by"
|
name="created_by"
|
||||||
type="user"
|
type="user"
|
||||||
label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_CREATED_BY_LABEL"
|
label="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_CREATED_BY_LABEL"
|
||||||
description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_CREATED_BY_DESC"
|
description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_CREATED_BY_DESC"
|
||||||
/>
|
/>
|
||||||
<!-- [11046] Published Field. Type: List (joomla) -->
|
<!-- [11290] Published Field. Type: List (joomla) -->
|
||||||
<field name="published" type="list" label="JSTATUS"
|
<field name="published" type="list" label="JSTATUS"
|
||||||
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
|
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
|
||||||
filter="intval" size="1" default="1" >
|
filter="intval" size="1" default="1" >
|
||||||
@ -42,18 +42,18 @@
|
|||||||
<option value="-2">
|
<option value="-2">
|
||||||
JTRASHED</option>
|
JTRASHED</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- [11061] Date Modified Field. Type: Calendar (joomla) -->
|
<!-- [11305] Date Modified Field. Type: Calendar (joomla) -->
|
||||||
<field name="modified" type="calendar" class="readonly"
|
<field name="modified" type="calendar" class="readonly"
|
||||||
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
|
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
|
||||||
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
|
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
|
||||||
<!-- [11065] User Modified Field. Type: User (joomla) -->
|
<!-- [11309] User Modified Field. Type: User (joomla) -->
|
||||||
<field name="modified_by" type="user"
|
<field name="modified_by" type="user"
|
||||||
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
|
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
|
||||||
class="readonly"
|
class="readonly"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
<!-- [11075] Access Field. Type: Accesslevel (joomla) -->
|
<!-- [11319] Access Field. Type: Accesslevel (joomla) -->
|
||||||
<field name="access"
|
<field name="access"
|
||||||
type="accesslevel"
|
type="accesslevel"
|
||||||
label="JFIELD_ACCESS_LABEL"
|
label="JFIELD_ACCESS_LABEL"
|
||||||
@ -61,7 +61,7 @@
|
|||||||
default="1"
|
default="1"
|
||||||
required="false"
|
required="false"
|
||||||
/>
|
/>
|
||||||
<!-- [11085] Ordering Field. Type: Numbers (joomla) -->
|
<!-- [11329] Ordering Field. Type: Numbers (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="ordering"
|
name="ordering"
|
||||||
type="number"
|
type="number"
|
||||||
@ -72,7 +72,7 @@
|
|||||||
size="6"
|
size="6"
|
||||||
required="false"
|
required="false"
|
||||||
/>
|
/>
|
||||||
<!-- [11097] Version Field. Type: Text (joomla) -->
|
<!-- [11341] Version Field. Type: Text (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="version"
|
name="version"
|
||||||
type="text"
|
type="text"
|
||||||
@ -83,7 +83,7 @@
|
|||||||
readonly="true"
|
readonly="true"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
<!-- [11111] Metakey Field. Type: Textarea (joomla) -->
|
<!-- [11355] Metakey Field. Type: Textarea (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="metakey"
|
name="metakey"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
@ -92,7 +92,7 @@
|
|||||||
rows="3"
|
rows="3"
|
||||||
cols="30"
|
cols="30"
|
||||||
/>
|
/>
|
||||||
<!-- [11120] Metadesc Field. Type: Textarea (joomla) -->
|
<!-- [11364] Metadesc Field. Type: Textarea (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="metadesc"
|
name="metadesc"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
@ -101,8 +101,8 @@
|
|||||||
rows="3"
|
rows="3"
|
||||||
cols="30"
|
cols="30"
|
||||||
/>
|
/>
|
||||||
<!-- [11130] Dynamic Fields. -->
|
<!-- [11374] Dynamic Fields. -->
|
||||||
<!-- [11366] Title Field. Type: Text. (joomla) -->
|
<!-- [11610] Title Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="text"
|
||||||
name="title"
|
name="title"
|
||||||
@ -118,7 +118,7 @@
|
|||||||
message="Error! Please add title here."
|
message="Error! Please add title here."
|
||||||
hint="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TITLE_HINT"
|
hint="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TITLE_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- [11280] Type Field. Type: List. (joomla) -->
|
<!-- [11524] Type Field. Type: List. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="list"
|
type="list"
|
||||||
name="type"
|
name="type"
|
||||||
@ -127,7 +127,7 @@
|
|||||||
class="list_class"
|
class="list_class"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
required="true">
|
required="true">
|
||||||
<!-- [11352] Option Set. -->
|
<!-- [11596] Option Set. -->
|
||||||
<option value="">
|
<option value="">
|
||||||
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SELECT_AN_OPTION</option>
|
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SELECT_AN_OPTION</option>
|
||||||
<option value="1">
|
<option value="1">
|
||||||
@ -137,7 +137,7 @@
|
|||||||
<option value="3">
|
<option value="3">
|
||||||
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL</option>
|
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- [11366] Groups Field. Type: Usergroup. (joomla) -->
|
<!-- [11610] Groups Field. Type: Usergroup. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="usergroup"
|
type="usergroup"
|
||||||
name="groups"
|
name="groups"
|
||||||
@ -146,7 +146,7 @@
|
|||||||
required="true"
|
required="true"
|
||||||
multiple="true"
|
multiple="true"
|
||||||
/>
|
/>
|
||||||
<!-- [11280] Location Field. Type: Radio. (joomla) -->
|
<!-- [11524] Location Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
name="location"
|
name="location"
|
||||||
@ -154,13 +154,13 @@
|
|||||||
description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_LOCATION_DESCRIPTION"
|
description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_LOCATION_DESCRIPTION"
|
||||||
class="btn-group"
|
class="btn-group"
|
||||||
required="true">
|
required="true">
|
||||||
<!-- [11352] Option Set. -->
|
<!-- [11596] Option Set. -->
|
||||||
<option value="1">
|
<option value="1">
|
||||||
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN</option>
|
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN</option>
|
||||||
<option value="2">
|
<option value="2">
|
||||||
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE</option>
|
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- [11366] Admin_view Field. Type: Folderlist. (joomla) -->
|
<!-- [11610] Admin_view Field. Type: Folderlist. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="folderlist"
|
type="folderlist"
|
||||||
name="admin_view"
|
name="admin_view"
|
||||||
@ -170,7 +170,7 @@
|
|||||||
hide_none="true"
|
hide_none="true"
|
||||||
hide_default="true"
|
hide_default="true"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Site_view Field. Type: Folderlist. (joomla) -->
|
<!-- [11610] Site_view Field. Type: Folderlist. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="folderlist"
|
type="folderlist"
|
||||||
name="site_view"
|
name="site_view"
|
||||||
@ -180,7 +180,7 @@
|
|||||||
hide_none="true"
|
hide_none="true"
|
||||||
hide_default="true"
|
hide_default="true"
|
||||||
/>
|
/>
|
||||||
<!-- [11280] Target Field. Type: Radio. (joomla) -->
|
<!-- [11524] Target Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
name="target"
|
name="target"
|
||||||
@ -188,13 +188,13 @@
|
|||||||
description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TARGET_DESCRIPTION"
|
description="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TARGET_DESCRIPTION"
|
||||||
class="btn-group"
|
class="btn-group"
|
||||||
required="true">
|
required="true">
|
||||||
<!-- [11352] Option Set. -->
|
<!-- [11596] Option Set. -->
|
||||||
<option value="1">
|
<option value="1">
|
||||||
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SOME</option>
|
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SOME</option>
|
||||||
<option value="2">
|
<option value="2">
|
||||||
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ALL</option>
|
COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ALL</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- [11366] Content Field. Type: Editor. (joomla) -->
|
<!-- [11610] Content Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="editor"
|
type="editor"
|
||||||
name="content"
|
name="content"
|
||||||
@ -205,7 +205,7 @@
|
|||||||
filter="safehtml"
|
filter="safehtml"
|
||||||
required="true"
|
required="true"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Alias Field. Type: Text. (joomla) -->
|
<!-- [11610] Alias Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="text"
|
||||||
name="alias"
|
name="alias"
|
||||||
@ -214,7 +214,7 @@
|
|||||||
filter="STRING"
|
filter="STRING"
|
||||||
hint="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ALIAS_HINT"
|
hint="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ALIAS_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- [11487] Article Field. Type: Articles. (custom) -->
|
<!-- [11731] Article Field. Type: Articles. (custom) -->
|
||||||
<field
|
<field
|
||||||
type="articles"
|
type="articles"
|
||||||
name="article"
|
name="article"
|
||||||
@ -224,7 +224,7 @@
|
|||||||
default="0"
|
default="0"
|
||||||
required="true"
|
required="true"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Url Field. Type: Url. (joomla) -->
|
<!-- [11610] Url Field. Type: Url. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="url"
|
type="url"
|
||||||
name="url"
|
name="url"
|
||||||
@ -239,7 +239,7 @@
|
|||||||
message="Error! Please add url here."
|
message="Error! Please add url here."
|
||||||
hint="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL_HINT"
|
hint="COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Not_required Field. Type: Hidden. (joomla) -->
|
<!-- [11610] Not_required Field. Type: Hidden. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="hidden"
|
type="hidden"
|
||||||
name="not_required"
|
name="not_required"
|
||||||
@ -247,11 +247,11 @@
|
|||||||
/>
|
/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<!-- [11149] Metadata Fields. -->
|
<!-- [11393] Metadata Fields. -->
|
||||||
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||||
<fieldset name="vdmmetadata"
|
<fieldset name="vdmmetadata"
|
||||||
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||||
<!-- [11153] Robots Field. Type: List (joomla) -->
|
<!-- [11397] Robots Field. Type: List (joomla) -->
|
||||||
<field name="robots"
|
<field name="robots"
|
||||||
type="list"
|
type="list"
|
||||||
label="JFIELD_METADATA_ROBOTS_LABEL"
|
label="JFIELD_METADATA_ROBOTS_LABEL"
|
||||||
@ -262,13 +262,13 @@
|
|||||||
<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
|
<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
|
||||||
<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
|
<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- [11164] Author Field. Type: Text (joomla) -->
|
<!-- [11408] Author Field. Type: Text (joomla) -->
|
||||||
<field name="author"
|
<field name="author"
|
||||||
type="text"
|
type="text"
|
||||||
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
|
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
|
||||||
size="20"
|
size="20"
|
||||||
/>
|
/>
|
||||||
<!-- [11170] Rights Field. Type: Textarea (joomla) -->
|
<!-- [11414] Rights Field. Type: Textarea (joomla) -->
|
||||||
<field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL"
|
<field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL"
|
||||||
description="JFIELD_META_RIGHTS_DESC" required="false" filter="string"
|
description="JFIELD_META_RIGHTS_DESC" required="false" filter="string"
|
||||||
cols="30" rows="2"
|
cols="30" rows="2"
|
||||||
@ -276,15 +276,15 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</fields>
|
</fields>
|
||||||
|
|
||||||
<!-- [10053] Access Control Fields. -->
|
<!-- [10296] Access Control Fields. -->
|
||||||
<fieldset name="accesscontrol">
|
<fieldset name="accesscontrol">
|
||||||
<!-- [10055] Asset Id Field. Type: Hidden (joomla) -->
|
<!-- [10298] Asset Id Field. Type: Hidden (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="asset_id"
|
name="asset_id"
|
||||||
type="hidden"
|
type="hidden"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
<!-- [10061] Rules Field. Type: Rules (joomla) -->
|
<!-- [10304] Rules Field. Type: Rules (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="rules"
|
name="rules"
|
||||||
type="rules"
|
type="rules"
|
||||||
|
@ -1,20 +1,25 @@
|
|||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage preacher.js
|
@subpackage preacher.js
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,15 +4,15 @@
|
|||||||
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
|
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
|
||||||
>
|
>
|
||||||
<fieldset name="details">
|
<fieldset name="details">
|
||||||
<!-- [11019] Default Fields. -->
|
<!-- [11263] Default Fields. -->
|
||||||
<!-- [11020] Id Field. Type: Text (joomla) -->
|
<!-- [11264] Id Field. Type: Text (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="id"
|
name="id"
|
||||||
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
|
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
|
||||||
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
|
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
/>
|
/>
|
||||||
<!-- [11027] Date Created Field. Type: Calendar (joomla) -->
|
<!-- [11271] Date Created Field. Type: Calendar (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="created"
|
name="created"
|
||||||
type="calendar"
|
type="calendar"
|
||||||
@ -22,14 +22,14 @@
|
|||||||
format="%Y-%m-%d %H:%M:%S"
|
format="%Y-%m-%d %H:%M:%S"
|
||||||
filter="user_utc"
|
filter="user_utc"
|
||||||
/>
|
/>
|
||||||
<!-- [11038] User Created Field. Type: User (joomla) -->
|
<!-- [11282] User Created Field. Type: User (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="created_by"
|
name="created_by"
|
||||||
type="user"
|
type="user"
|
||||||
label="COM_SERMONDISTRIBUTOR_PREACHER_CREATED_BY_LABEL"
|
label="COM_SERMONDISTRIBUTOR_PREACHER_CREATED_BY_LABEL"
|
||||||
description="COM_SERMONDISTRIBUTOR_PREACHER_CREATED_BY_DESC"
|
description="COM_SERMONDISTRIBUTOR_PREACHER_CREATED_BY_DESC"
|
||||||
/>
|
/>
|
||||||
<!-- [11046] Published Field. Type: List (joomla) -->
|
<!-- [11290] Published Field. Type: List (joomla) -->
|
||||||
<field name="published" type="list" label="JSTATUS"
|
<field name="published" type="list" label="JSTATUS"
|
||||||
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
|
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
|
||||||
filter="intval" size="1" default="1" >
|
filter="intval" size="1" default="1" >
|
||||||
@ -42,18 +42,18 @@
|
|||||||
<option value="-2">
|
<option value="-2">
|
||||||
JTRASHED</option>
|
JTRASHED</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- [11061] Date Modified Field. Type: Calendar (joomla) -->
|
<!-- [11305] Date Modified Field. Type: Calendar (joomla) -->
|
||||||
<field name="modified" type="calendar" class="readonly"
|
<field name="modified" type="calendar" class="readonly"
|
||||||
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
|
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
|
||||||
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
|
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
|
||||||
<!-- [11065] User Modified Field. Type: User (joomla) -->
|
<!-- [11309] User Modified Field. Type: User (joomla) -->
|
||||||
<field name="modified_by" type="user"
|
<field name="modified_by" type="user"
|
||||||
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
|
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
|
||||||
class="readonly"
|
class="readonly"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
<!-- [11075] Access Field. Type: Accesslevel (joomla) -->
|
<!-- [11319] Access Field. Type: Accesslevel (joomla) -->
|
||||||
<field name="access"
|
<field name="access"
|
||||||
type="accesslevel"
|
type="accesslevel"
|
||||||
label="JFIELD_ACCESS_LABEL"
|
label="JFIELD_ACCESS_LABEL"
|
||||||
@ -61,7 +61,7 @@
|
|||||||
default="1"
|
default="1"
|
||||||
required="false"
|
required="false"
|
||||||
/>
|
/>
|
||||||
<!-- [11085] Ordering Field. Type: Numbers (joomla) -->
|
<!-- [11329] Ordering Field. Type: Numbers (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="ordering"
|
name="ordering"
|
||||||
type="number"
|
type="number"
|
||||||
@ -72,7 +72,7 @@
|
|||||||
size="6"
|
size="6"
|
||||||
required="false"
|
required="false"
|
||||||
/>
|
/>
|
||||||
<!-- [11097] Version Field. Type: Text (joomla) -->
|
<!-- [11341] Version Field. Type: Text (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="version"
|
name="version"
|
||||||
type="text"
|
type="text"
|
||||||
@ -83,7 +83,7 @@
|
|||||||
readonly="true"
|
readonly="true"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
<!-- [11111] Metakey Field. Type: Textarea (joomla) -->
|
<!-- [11355] Metakey Field. Type: Textarea (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="metakey"
|
name="metakey"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
@ -92,7 +92,7 @@
|
|||||||
rows="3"
|
rows="3"
|
||||||
cols="30"
|
cols="30"
|
||||||
/>
|
/>
|
||||||
<!-- [11120] Metadesc Field. Type: Textarea (joomla) -->
|
<!-- [11364] Metadesc Field. Type: Textarea (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="metadesc"
|
name="metadesc"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
@ -101,8 +101,8 @@
|
|||||||
rows="3"
|
rows="3"
|
||||||
cols="30"
|
cols="30"
|
||||||
/>
|
/>
|
||||||
<!-- [11130] Dynamic Fields. -->
|
<!-- [11374] Dynamic Fields. -->
|
||||||
<!-- [11366] Name Field. Type: Text. (joomla) -->
|
<!-- [11610] Name Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="text"
|
||||||
name="name"
|
name="name"
|
||||||
@ -118,7 +118,7 @@
|
|||||||
message="Error! Please add name here."
|
message="Error! Please add name here."
|
||||||
hint="COM_SERMONDISTRIBUTOR_PREACHER_NAME_HINT"
|
hint="COM_SERMONDISTRIBUTOR_PREACHER_NAME_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Description Field. Type: Editor. (joomla) -->
|
<!-- [11610] Description Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="editor"
|
type="editor"
|
||||||
name="description"
|
name="description"
|
||||||
@ -130,7 +130,7 @@
|
|||||||
buttons="false"
|
buttons="false"
|
||||||
filter="safehtml"
|
filter="safehtml"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Alias Field. Type: Text. (joomla) -->
|
<!-- [11610] Alias Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="text"
|
||||||
name="alias"
|
name="alias"
|
||||||
@ -139,7 +139,7 @@
|
|||||||
filter="STRING"
|
filter="STRING"
|
||||||
hint="COM_SERMONDISTRIBUTOR_PREACHER_ALIAS_HINT"
|
hint="COM_SERMONDISTRIBUTOR_PREACHER_ALIAS_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Email Field. Type: Text. (joomla) -->
|
<!-- [11610] Email Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="text"
|
||||||
name="email"
|
name="email"
|
||||||
@ -154,7 +154,7 @@
|
|||||||
message="Error! Please add email address here."
|
message="Error! Please add email address here."
|
||||||
hint="COM_SERMONDISTRIBUTOR_PREACHER_EMAIL_HINT"
|
hint="COM_SERMONDISTRIBUTOR_PREACHER_EMAIL_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Website Field. Type: Url. (joomla) -->
|
<!-- [11610] Website Field. Type: Url. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="url"
|
type="url"
|
||||||
name="website"
|
name="website"
|
||||||
@ -168,7 +168,7 @@
|
|||||||
message="Error! Please add website here."
|
message="Error! Please add website here."
|
||||||
hint="COM_SERMONDISTRIBUTOR_PREACHER_WEBSITE_HINT"
|
hint="COM_SERMONDISTRIBUTOR_PREACHER_WEBSITE_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Icon Field. Type: Media. (joomla) -->
|
<!-- [11610] Icon Field. Type: Media. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="media"
|
type="media"
|
||||||
name="icon"
|
name="icon"
|
||||||
@ -178,11 +178,11 @@
|
|||||||
/>
|
/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<!-- [11149] Metadata Fields. -->
|
<!-- [11393] Metadata Fields. -->
|
||||||
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||||
<fieldset name="vdmmetadata"
|
<fieldset name="vdmmetadata"
|
||||||
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||||
<!-- [11153] Robots Field. Type: List (joomla) -->
|
<!-- [11397] Robots Field. Type: List (joomla) -->
|
||||||
<field name="robots"
|
<field name="robots"
|
||||||
type="list"
|
type="list"
|
||||||
label="JFIELD_METADATA_ROBOTS_LABEL"
|
label="JFIELD_METADATA_ROBOTS_LABEL"
|
||||||
@ -193,13 +193,13 @@
|
|||||||
<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
|
<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
|
||||||
<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
|
<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- [11164] Author Field. Type: Text (joomla) -->
|
<!-- [11408] Author Field. Type: Text (joomla) -->
|
||||||
<field name="author"
|
<field name="author"
|
||||||
type="text"
|
type="text"
|
||||||
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
|
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
|
||||||
size="20"
|
size="20"
|
||||||
/>
|
/>
|
||||||
<!-- [11170] Rights Field. Type: Textarea (joomla) -->
|
<!-- [11414] Rights Field. Type: Textarea (joomla) -->
|
||||||
<field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL"
|
<field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL"
|
||||||
description="JFIELD_META_RIGHTS_DESC" required="false" filter="string"
|
description="JFIELD_META_RIGHTS_DESC" required="false" filter="string"
|
||||||
cols="30" rows="2"
|
cols="30" rows="2"
|
||||||
@ -207,15 +207,15 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</fields>
|
</fields>
|
||||||
|
|
||||||
<!-- [10053] Access Control Fields. -->
|
<!-- [10296] Access Control Fields. -->
|
||||||
<fieldset name="accesscontrol">
|
<fieldset name="accesscontrol">
|
||||||
<!-- [10055] Asset Id Field. Type: Hidden (joomla) -->
|
<!-- [10298] Asset Id Field. Type: Hidden (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="asset_id"
|
name="asset_id"
|
||||||
type="hidden"
|
type="hidden"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
<!-- [10061] Rules Field. Type: Rules (joomla) -->
|
<!-- [10304] Rules Field. Type: Rules (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="rules"
|
name="rules"
|
||||||
type="rules"
|
type="rules"
|
||||||
|
@ -1,20 +1,25 @@
|
|||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage series.js
|
@subpackage series.js
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,15 +4,15 @@
|
|||||||
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
|
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
|
||||||
>
|
>
|
||||||
<fieldset name="details">
|
<fieldset name="details">
|
||||||
<!-- [11019] Default Fields. -->
|
<!-- [11263] Default Fields. -->
|
||||||
<!-- [11020] Id Field. Type: Text (joomla) -->
|
<!-- [11264] Id Field. Type: Text (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="id"
|
name="id"
|
||||||
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
|
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
|
||||||
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
|
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
/>
|
/>
|
||||||
<!-- [11027] Date Created Field. Type: Calendar (joomla) -->
|
<!-- [11271] Date Created Field. Type: Calendar (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="created"
|
name="created"
|
||||||
type="calendar"
|
type="calendar"
|
||||||
@ -22,14 +22,14 @@
|
|||||||
format="%Y-%m-%d %H:%M:%S"
|
format="%Y-%m-%d %H:%M:%S"
|
||||||
filter="user_utc"
|
filter="user_utc"
|
||||||
/>
|
/>
|
||||||
<!-- [11038] User Created Field. Type: User (joomla) -->
|
<!-- [11282] User Created Field. Type: User (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="created_by"
|
name="created_by"
|
||||||
type="user"
|
type="user"
|
||||||
label="COM_SERMONDISTRIBUTOR_SERIES_CREATED_BY_LABEL"
|
label="COM_SERMONDISTRIBUTOR_SERIES_CREATED_BY_LABEL"
|
||||||
description="COM_SERMONDISTRIBUTOR_SERIES_CREATED_BY_DESC"
|
description="COM_SERMONDISTRIBUTOR_SERIES_CREATED_BY_DESC"
|
||||||
/>
|
/>
|
||||||
<!-- [11046] Published Field. Type: List (joomla) -->
|
<!-- [11290] Published Field. Type: List (joomla) -->
|
||||||
<field name="published" type="list" label="JSTATUS"
|
<field name="published" type="list" label="JSTATUS"
|
||||||
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
|
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
|
||||||
filter="intval" size="1" default="1" >
|
filter="intval" size="1" default="1" >
|
||||||
@ -42,18 +42,18 @@
|
|||||||
<option value="-2">
|
<option value="-2">
|
||||||
JTRASHED</option>
|
JTRASHED</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- [11061] Date Modified Field. Type: Calendar (joomla) -->
|
<!-- [11305] Date Modified Field. Type: Calendar (joomla) -->
|
||||||
<field name="modified" type="calendar" class="readonly"
|
<field name="modified" type="calendar" class="readonly"
|
||||||
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
|
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
|
||||||
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
|
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
|
||||||
<!-- [11065] User Modified Field. Type: User (joomla) -->
|
<!-- [11309] User Modified Field. Type: User (joomla) -->
|
||||||
<field name="modified_by" type="user"
|
<field name="modified_by" type="user"
|
||||||
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
|
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
|
||||||
class="readonly"
|
class="readonly"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
<!-- [11075] Access Field. Type: Accesslevel (joomla) -->
|
<!-- [11319] Access Field. Type: Accesslevel (joomla) -->
|
||||||
<field name="access"
|
<field name="access"
|
||||||
type="accesslevel"
|
type="accesslevel"
|
||||||
label="JFIELD_ACCESS_LABEL"
|
label="JFIELD_ACCESS_LABEL"
|
||||||
@ -61,7 +61,7 @@
|
|||||||
default="1"
|
default="1"
|
||||||
required="false"
|
required="false"
|
||||||
/>
|
/>
|
||||||
<!-- [11085] Ordering Field. Type: Numbers (joomla) -->
|
<!-- [11329] Ordering Field. Type: Numbers (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="ordering"
|
name="ordering"
|
||||||
type="number"
|
type="number"
|
||||||
@ -72,7 +72,7 @@
|
|||||||
size="6"
|
size="6"
|
||||||
required="false"
|
required="false"
|
||||||
/>
|
/>
|
||||||
<!-- [11097] Version Field. Type: Text (joomla) -->
|
<!-- [11341] Version Field. Type: Text (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="version"
|
name="version"
|
||||||
type="text"
|
type="text"
|
||||||
@ -83,7 +83,7 @@
|
|||||||
readonly="true"
|
readonly="true"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
<!-- [11111] Metakey Field. Type: Textarea (joomla) -->
|
<!-- [11355] Metakey Field. Type: Textarea (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="metakey"
|
name="metakey"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
@ -92,7 +92,7 @@
|
|||||||
rows="3"
|
rows="3"
|
||||||
cols="30"
|
cols="30"
|
||||||
/>
|
/>
|
||||||
<!-- [11120] Metadesc Field. Type: Textarea (joomla) -->
|
<!-- [11364] Metadesc Field. Type: Textarea (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="metadesc"
|
name="metadesc"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
@ -101,8 +101,8 @@
|
|||||||
rows="3"
|
rows="3"
|
||||||
cols="30"
|
cols="30"
|
||||||
/>
|
/>
|
||||||
<!-- [11130] Dynamic Fields. -->
|
<!-- [11374] Dynamic Fields. -->
|
||||||
<!-- [11366] Name Field. Type: Text. (joomla) -->
|
<!-- [11610] Name Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="text"
|
||||||
name="name"
|
name="name"
|
||||||
@ -118,7 +118,7 @@
|
|||||||
message="Error! Please add name here."
|
message="Error! Please add name here."
|
||||||
hint="COM_SERMONDISTRIBUTOR_SERIES_NAME_HINT"
|
hint="COM_SERMONDISTRIBUTOR_SERIES_NAME_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Description Field. Type: Editor. (joomla) -->
|
<!-- [11610] Description Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="editor"
|
type="editor"
|
||||||
name="description"
|
name="description"
|
||||||
@ -130,7 +130,7 @@
|
|||||||
buttons="false"
|
buttons="false"
|
||||||
filter="safehtml"
|
filter="safehtml"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Alias Field. Type: Text. (joomla) -->
|
<!-- [11610] Alias Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="text"
|
||||||
name="alias"
|
name="alias"
|
||||||
@ -139,7 +139,7 @@
|
|||||||
filter="STRING"
|
filter="STRING"
|
||||||
hint="COM_SERMONDISTRIBUTOR_SERIES_ALIAS_HINT"
|
hint="COM_SERMONDISTRIBUTOR_SERIES_ALIAS_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Icon Field. Type: Media. (joomla) -->
|
<!-- [11610] Icon Field. Type: Media. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="media"
|
type="media"
|
||||||
name="icon"
|
name="icon"
|
||||||
@ -147,7 +147,7 @@
|
|||||||
description="COM_SERMONDISTRIBUTOR_SERIES_ICON_DESCRIPTION"
|
description="COM_SERMONDISTRIBUTOR_SERIES_ICON_DESCRIPTION"
|
||||||
directory=""
|
directory=""
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Scripture Field. Type: Text. (joomla) -->
|
<!-- [11610] Scripture Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="text"
|
||||||
name="scripture"
|
name="scripture"
|
||||||
@ -165,11 +165,11 @@
|
|||||||
/>
|
/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<!-- [11149] Metadata Fields. -->
|
<!-- [11393] Metadata Fields. -->
|
||||||
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||||
<fieldset name="vdmmetadata"
|
<fieldset name="vdmmetadata"
|
||||||
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||||
<!-- [11153] Robots Field. Type: List (joomla) -->
|
<!-- [11397] Robots Field. Type: List (joomla) -->
|
||||||
<field name="robots"
|
<field name="robots"
|
||||||
type="list"
|
type="list"
|
||||||
label="JFIELD_METADATA_ROBOTS_LABEL"
|
label="JFIELD_METADATA_ROBOTS_LABEL"
|
||||||
@ -180,13 +180,13 @@
|
|||||||
<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
|
<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
|
||||||
<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
|
<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- [11164] Author Field. Type: Text (joomla) -->
|
<!-- [11408] Author Field. Type: Text (joomla) -->
|
||||||
<field name="author"
|
<field name="author"
|
||||||
type="text"
|
type="text"
|
||||||
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
|
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
|
||||||
size="20"
|
size="20"
|
||||||
/>
|
/>
|
||||||
<!-- [11170] Rights Field. Type: Textarea (joomla) -->
|
<!-- [11414] Rights Field. Type: Textarea (joomla) -->
|
||||||
<field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL"
|
<field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL"
|
||||||
description="JFIELD_META_RIGHTS_DESC" required="false" filter="string"
|
description="JFIELD_META_RIGHTS_DESC" required="false" filter="string"
|
||||||
cols="30" rows="2"
|
cols="30" rows="2"
|
||||||
@ -194,15 +194,15 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</fields>
|
</fields>
|
||||||
|
|
||||||
<!-- [10053] Access Control Fields. -->
|
<!-- [10296] Access Control Fields. -->
|
||||||
<fieldset name="accesscontrol">
|
<fieldset name="accesscontrol">
|
||||||
<!-- [10055] Asset Id Field. Type: Hidden (joomla) -->
|
<!-- [10298] Asset Id Field. Type: Hidden (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="asset_id"
|
name="asset_id"
|
||||||
type="hidden"
|
type="hidden"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
<!-- [10061] Rules Field. Type: Rules (joomla) -->
|
<!-- [10304] Rules Field. Type: Rules (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="rules"
|
name="rules"
|
||||||
type="rules"
|
type="rules"
|
||||||
|
@ -1,144 +1,149 @@
|
|||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage sermon.js
|
@subpackage sermon.js
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// Some Global Values
|
// Some Global Values
|
||||||
jform_NKOinBhjcR_required = false;
|
jform_pRjJkFbxsO_required = false;
|
||||||
jform_tcPmpLTZoG_required = false;
|
jform_UwNFZmFkhM_required = false;
|
||||||
jform_gxilNjehSq_required = false;
|
jform_XolZULNBiI_required = false;
|
||||||
jform_oQgboDxRIY_required = false;
|
jform_BxTsmCrfEH_required = false;
|
||||||
jform_YcaNoltkqP_required = false;
|
jform_DrXlXWEDhG_required = false;
|
||||||
|
|
||||||
// Initial Script
|
// Initial Script
|
||||||
jQuery(document).ready(function()
|
jQuery(document).ready(function()
|
||||||
{
|
{
|
||||||
var source_NKOinBh = jQuery("#jform_source").val();
|
var source_pRjJkFb = jQuery("#jform_source").val();
|
||||||
NKOinBh(source_NKOinBh);
|
pRjJkFb(source_pRjJkFb);
|
||||||
|
|
||||||
var source_ALgjVVL = jQuery("#jform_source").val();
|
var source_NvRTrqR = jQuery("#jform_source").val();
|
||||||
var build_ALgjVVL = jQuery("#jform_build input[type='radio']:checked").val();
|
var build_NvRTrqR = jQuery("#jform_build input[type='radio']:checked").val();
|
||||||
ALgjVVL(source_ALgjVVL,build_ALgjVVL);
|
NvRTrqR(source_NvRTrqR,build_NvRTrqR);
|
||||||
|
|
||||||
var source_tcPmpLT = jQuery("#jform_source").val();
|
var source_UwNFZmF = jQuery("#jform_source").val();
|
||||||
var build_tcPmpLT = jQuery("#jform_build input[type='radio']:checked").val();
|
var build_UwNFZmF = jQuery("#jform_build input[type='radio']:checked").val();
|
||||||
tcPmpLT(source_tcPmpLT,build_tcPmpLT);
|
UwNFZmF(source_UwNFZmF,build_UwNFZmF);
|
||||||
|
|
||||||
var build_gxilNje = jQuery("#jform_build input[type='radio']:checked").val();
|
var build_XolZULN = jQuery("#jform_build input[type='radio']:checked").val();
|
||||||
var source_gxilNje = jQuery("#jform_source").val();
|
var source_XolZULN = jQuery("#jform_source").val();
|
||||||
gxilNje(build_gxilNje,source_gxilNje);
|
XolZULN(build_XolZULN,source_XolZULN);
|
||||||
|
|
||||||
var source_oQgboDx = jQuery("#jform_source").val();
|
var source_BxTsmCr = jQuery("#jform_source").val();
|
||||||
oQgboDx(source_oQgboDx);
|
BxTsmCr(source_BxTsmCr);
|
||||||
|
|
||||||
var source_YcaNolt = jQuery("#jform_source").val();
|
var source_DrXlXWE = jQuery("#jform_source").val();
|
||||||
YcaNolt(source_YcaNolt);
|
DrXlXWE(source_DrXlXWE);
|
||||||
|
|
||||||
var link_type_VrtcKcp = jQuery("#jform_link_type input[type='radio']:checked").val();
|
var link_type_jgbBgTf = jQuery("#jform_link_type input[type='radio']:checked").val();
|
||||||
VrtcKcp(link_type_VrtcKcp);
|
jgbBgTf(link_type_jgbBgTf);
|
||||||
|
|
||||||
var link_type_KohbyVh = jQuery("#jform_link_type input[type='radio']:checked").val();
|
var link_type_TvlDXQo = jQuery("#jform_link_type input[type='radio']:checked").val();
|
||||||
KohbyVh(link_type_KohbyVh);
|
TvlDXQo(link_type_TvlDXQo);
|
||||||
});
|
});
|
||||||
|
|
||||||
// the NKOinBh function
|
// the pRjJkFb function
|
||||||
function NKOinBh(source_NKOinBh)
|
function pRjJkFb(source_pRjJkFb)
|
||||||
{
|
{
|
||||||
if (isSet(source_NKOinBh) && source_NKOinBh.constructor !== Array)
|
if (isSet(source_pRjJkFb) && source_pRjJkFb.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_NKOinBh = source_NKOinBh;
|
var temp_pRjJkFb = source_pRjJkFb;
|
||||||
var source_NKOinBh = [];
|
var source_pRjJkFb = [];
|
||||||
source_NKOinBh.push(temp_NKOinBh);
|
source_pRjJkFb.push(temp_pRjJkFb);
|
||||||
}
|
}
|
||||||
else if (!isSet(source_NKOinBh))
|
else if (!isSet(source_pRjJkFb))
|
||||||
{
|
{
|
||||||
var source_NKOinBh = [];
|
var source_pRjJkFb = [];
|
||||||
}
|
}
|
||||||
var source = source_NKOinBh.some(source_NKOinBh_SomeFunc);
|
var source = source_pRjJkFb.some(source_pRjJkFb_SomeFunc);
|
||||||
|
|
||||||
|
|
||||||
// [7986] set this function logic
|
// [8226] set this function logic
|
||||||
if (source)
|
if (source)
|
||||||
{
|
{
|
||||||
jQuery('#jform_build').closest('.control-group').show();
|
jQuery('#jform_build').closest('.control-group').show();
|
||||||
if (jform_NKOinBhjcR_required)
|
if (jform_pRjJkFbxsO_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('build',0);
|
updateFieldRequired('build',0);
|
||||||
jQuery('#jform_build').prop('required','required');
|
jQuery('#jform_build').prop('required','required');
|
||||||
jQuery('#jform_build').attr('aria-required',true);
|
jQuery('#jform_build').attr('aria-required',true);
|
||||||
jQuery('#jform_build').addClass('required');
|
jQuery('#jform_build').addClass('required');
|
||||||
jform_NKOinBhjcR_required = false;
|
jform_pRjJkFbxsO_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_build').closest('.control-group').hide();
|
jQuery('#jform_build').closest('.control-group').hide();
|
||||||
if (!jform_NKOinBhjcR_required)
|
if (!jform_pRjJkFbxsO_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('build',1);
|
updateFieldRequired('build',1);
|
||||||
jQuery('#jform_build').removeAttr('required');
|
jQuery('#jform_build').removeAttr('required');
|
||||||
jQuery('#jform_build').removeAttr('aria-required');
|
jQuery('#jform_build').removeAttr('aria-required');
|
||||||
jQuery('#jform_build').removeClass('required');
|
jQuery('#jform_build').removeClass('required');
|
||||||
jform_NKOinBhjcR_required = true;
|
jform_pRjJkFbxsO_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the NKOinBh Some function
|
// the pRjJkFb Some function
|
||||||
function source_NKOinBh_SomeFunc(source_NKOinBh)
|
function source_pRjJkFb_SomeFunc(source_pRjJkFb)
|
||||||
{
|
{
|
||||||
// [7973] set the function logic
|
// [8213] set the function logic
|
||||||
if (source_NKOinBh == 2)
|
if (source_pRjJkFb == 2)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// the ALgjVVL function
|
// the NvRTrqR function
|
||||||
function ALgjVVL(source_ALgjVVL,build_ALgjVVL)
|
function NvRTrqR(source_NvRTrqR,build_NvRTrqR)
|
||||||
{
|
{
|
||||||
if (isSet(source_ALgjVVL) && source_ALgjVVL.constructor !== Array)
|
if (isSet(source_NvRTrqR) && source_NvRTrqR.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_ALgjVVL = source_ALgjVVL;
|
var temp_NvRTrqR = source_NvRTrqR;
|
||||||
var source_ALgjVVL = [];
|
var source_NvRTrqR = [];
|
||||||
source_ALgjVVL.push(temp_ALgjVVL);
|
source_NvRTrqR.push(temp_NvRTrqR);
|
||||||
}
|
}
|
||||||
else if (!isSet(source_ALgjVVL))
|
else if (!isSet(source_NvRTrqR))
|
||||||
{
|
{
|
||||||
var source_ALgjVVL = [];
|
var source_NvRTrqR = [];
|
||||||
}
|
}
|
||||||
var source = source_ALgjVVL.some(source_ALgjVVL_SomeFunc);
|
var source = source_NvRTrqR.some(source_NvRTrqR_SomeFunc);
|
||||||
|
|
||||||
if (isSet(build_ALgjVVL) && build_ALgjVVL.constructor !== Array)
|
if (isSet(build_NvRTrqR) && build_NvRTrqR.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_ALgjVVL = build_ALgjVVL;
|
var temp_NvRTrqR = build_NvRTrqR;
|
||||||
var build_ALgjVVL = [];
|
var build_NvRTrqR = [];
|
||||||
build_ALgjVVL.push(temp_ALgjVVL);
|
build_NvRTrqR.push(temp_NvRTrqR);
|
||||||
}
|
}
|
||||||
else if (!isSet(build_ALgjVVL))
|
else if (!isSet(build_NvRTrqR))
|
||||||
{
|
{
|
||||||
var build_ALgjVVL = [];
|
var build_NvRTrqR = [];
|
||||||
}
|
}
|
||||||
var build = build_ALgjVVL.some(build_ALgjVVL_SomeFunc);
|
var build = build_NvRTrqR.some(build_NvRTrqR_SomeFunc);
|
||||||
|
|
||||||
|
|
||||||
// [7986] set this function logic
|
// [8226] set this function logic
|
||||||
if (source && build)
|
if (source && build)
|
||||||
{
|
{
|
||||||
jQuery('.note_auto_dropbox').closest('.control-group').show();
|
jQuery('.note_auto_dropbox').closest('.control-group').show();
|
||||||
@ -149,67 +154,67 @@ function ALgjVVL(source_ALgjVVL,build_ALgjVVL)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the ALgjVVL Some function
|
// the NvRTrqR Some function
|
||||||
function source_ALgjVVL_SomeFunc(source_ALgjVVL)
|
function source_NvRTrqR_SomeFunc(source_NvRTrqR)
|
||||||
{
|
{
|
||||||
// [7973] set the function logic
|
// [8213] set the function logic
|
||||||
if (source_ALgjVVL == 2)
|
if (source_NvRTrqR == 2)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// the ALgjVVL Some function
|
// the NvRTrqR Some function
|
||||||
function build_ALgjVVL_SomeFunc(build_ALgjVVL)
|
function build_NvRTrqR_SomeFunc(build_NvRTrqR)
|
||||||
{
|
{
|
||||||
// [7973] set the function logic
|
// [8213] set the function logic
|
||||||
if (build_ALgjVVL == 2)
|
if (build_NvRTrqR == 2)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// the tcPmpLT function
|
// the UwNFZmF function
|
||||||
function tcPmpLT(source_tcPmpLT,build_tcPmpLT)
|
function UwNFZmF(source_UwNFZmF,build_UwNFZmF)
|
||||||
{
|
{
|
||||||
if (isSet(source_tcPmpLT) && source_tcPmpLT.constructor !== Array)
|
if (isSet(source_UwNFZmF) && source_UwNFZmF.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_tcPmpLT = source_tcPmpLT;
|
var temp_UwNFZmF = source_UwNFZmF;
|
||||||
var source_tcPmpLT = [];
|
var source_UwNFZmF = [];
|
||||||
source_tcPmpLT.push(temp_tcPmpLT);
|
source_UwNFZmF.push(temp_UwNFZmF);
|
||||||
}
|
}
|
||||||
else if (!isSet(source_tcPmpLT))
|
else if (!isSet(source_UwNFZmF))
|
||||||
{
|
{
|
||||||
var source_tcPmpLT = [];
|
var source_UwNFZmF = [];
|
||||||
}
|
}
|
||||||
var source = source_tcPmpLT.some(source_tcPmpLT_SomeFunc);
|
var source = source_UwNFZmF.some(source_UwNFZmF_SomeFunc);
|
||||||
|
|
||||||
if (isSet(build_tcPmpLT) && build_tcPmpLT.constructor !== Array)
|
if (isSet(build_UwNFZmF) && build_UwNFZmF.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_tcPmpLT = build_tcPmpLT;
|
var temp_UwNFZmF = build_UwNFZmF;
|
||||||
var build_tcPmpLT = [];
|
var build_UwNFZmF = [];
|
||||||
build_tcPmpLT.push(temp_tcPmpLT);
|
build_UwNFZmF.push(temp_UwNFZmF);
|
||||||
}
|
}
|
||||||
else if (!isSet(build_tcPmpLT))
|
else if (!isSet(build_UwNFZmF))
|
||||||
{
|
{
|
||||||
var build_tcPmpLT = [];
|
var build_UwNFZmF = [];
|
||||||
}
|
}
|
||||||
var build = build_tcPmpLT.some(build_tcPmpLT_SomeFunc);
|
var build = build_UwNFZmF.some(build_UwNFZmF_SomeFunc);
|
||||||
|
|
||||||
|
|
||||||
// [7986] set this function logic
|
// [8226] set this function logic
|
||||||
if (source && build)
|
if (source && build)
|
||||||
{
|
{
|
||||||
jQuery('#jform_manual_files').closest('.control-group').show();
|
jQuery('#jform_manual_files').closest('.control-group').show();
|
||||||
if (jform_tcPmpLTZoG_required)
|
if (jform_UwNFZmFkhM_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('manual_files',0);
|
updateFieldRequired('manual_files',0);
|
||||||
jQuery('#jform_manual_files').prop('required','required');
|
jQuery('#jform_manual_files').prop('required','required');
|
||||||
jQuery('#jform_manual_files').attr('aria-required',true);
|
jQuery('#jform_manual_files').attr('aria-required',true);
|
||||||
jQuery('#jform_manual_files').addClass('required');
|
jQuery('#jform_manual_files').addClass('required');
|
||||||
jform_tcPmpLTZoG_required = false;
|
jform_UwNFZmFkhM_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('.note_manual_dropbox').closest('.control-group').show();
|
jQuery('.note_manual_dropbox').closest('.control-group').show();
|
||||||
@ -217,79 +222,79 @@ function tcPmpLT(source_tcPmpLT,build_tcPmpLT)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_manual_files').closest('.control-group').hide();
|
jQuery('#jform_manual_files').closest('.control-group').hide();
|
||||||
if (!jform_tcPmpLTZoG_required)
|
if (!jform_UwNFZmFkhM_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('manual_files',1);
|
updateFieldRequired('manual_files',1);
|
||||||
jQuery('#jform_manual_files').removeAttr('required');
|
jQuery('#jform_manual_files').removeAttr('required');
|
||||||
jQuery('#jform_manual_files').removeAttr('aria-required');
|
jQuery('#jform_manual_files').removeAttr('aria-required');
|
||||||
jQuery('#jform_manual_files').removeClass('required');
|
jQuery('#jform_manual_files').removeClass('required');
|
||||||
jform_tcPmpLTZoG_required = true;
|
jform_UwNFZmFkhM_required = true;
|
||||||
}
|
}
|
||||||
jQuery('.note_manual_dropbox').closest('.control-group').hide();
|
jQuery('.note_manual_dropbox').closest('.control-group').hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the tcPmpLT Some function
|
// the UwNFZmF Some function
|
||||||
function source_tcPmpLT_SomeFunc(source_tcPmpLT)
|
function source_UwNFZmF_SomeFunc(source_UwNFZmF)
|
||||||
{
|
{
|
||||||
// [7973] set the function logic
|
// [8213] set the function logic
|
||||||
if (source_tcPmpLT == 2)
|
if (source_UwNFZmF == 2)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// the tcPmpLT Some function
|
// the UwNFZmF Some function
|
||||||
function build_tcPmpLT_SomeFunc(build_tcPmpLT)
|
function build_UwNFZmF_SomeFunc(build_UwNFZmF)
|
||||||
{
|
{
|
||||||
// [7973] set the function logic
|
// [8213] set the function logic
|
||||||
if (build_tcPmpLT == 1)
|
if (build_UwNFZmF == 1)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// the gxilNje function
|
// the XolZULN function
|
||||||
function gxilNje(build_gxilNje,source_gxilNje)
|
function XolZULN(build_XolZULN,source_XolZULN)
|
||||||
{
|
{
|
||||||
if (isSet(build_gxilNje) && build_gxilNje.constructor !== Array)
|
if (isSet(build_XolZULN) && build_XolZULN.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_gxilNje = build_gxilNje;
|
var temp_XolZULN = build_XolZULN;
|
||||||
var build_gxilNje = [];
|
var build_XolZULN = [];
|
||||||
build_gxilNje.push(temp_gxilNje);
|
build_XolZULN.push(temp_XolZULN);
|
||||||
}
|
}
|
||||||
else if (!isSet(build_gxilNje))
|
else if (!isSet(build_XolZULN))
|
||||||
{
|
{
|
||||||
var build_gxilNje = [];
|
var build_XolZULN = [];
|
||||||
}
|
}
|
||||||
var build = build_gxilNje.some(build_gxilNje_SomeFunc);
|
var build = build_XolZULN.some(build_XolZULN_SomeFunc);
|
||||||
|
|
||||||
if (isSet(source_gxilNje) && source_gxilNje.constructor !== Array)
|
if (isSet(source_XolZULN) && source_XolZULN.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_gxilNje = source_gxilNje;
|
var temp_XolZULN = source_XolZULN;
|
||||||
var source_gxilNje = [];
|
var source_XolZULN = [];
|
||||||
source_gxilNje.push(temp_gxilNje);
|
source_XolZULN.push(temp_XolZULN);
|
||||||
}
|
}
|
||||||
else if (!isSet(source_gxilNje))
|
else if (!isSet(source_XolZULN))
|
||||||
{
|
{
|
||||||
var source_gxilNje = [];
|
var source_XolZULN = [];
|
||||||
}
|
}
|
||||||
var source = source_gxilNje.some(source_gxilNje_SomeFunc);
|
var source = source_XolZULN.some(source_XolZULN_SomeFunc);
|
||||||
|
|
||||||
|
|
||||||
// [7986] set this function logic
|
// [8226] set this function logic
|
||||||
if (build && source)
|
if (build && source)
|
||||||
{
|
{
|
||||||
jQuery('#jform_manual_files').closest('.control-group').show();
|
jQuery('#jform_manual_files').closest('.control-group').show();
|
||||||
if (jform_gxilNjehSq_required)
|
if (jform_XolZULNBiI_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('manual_files',0);
|
updateFieldRequired('manual_files',0);
|
||||||
jQuery('#jform_manual_files').prop('required','required');
|
jQuery('#jform_manual_files').prop('required','required');
|
||||||
jQuery('#jform_manual_files').attr('aria-required',true);
|
jQuery('#jform_manual_files').attr('aria-required',true);
|
||||||
jQuery('#jform_manual_files').addClass('required');
|
jQuery('#jform_manual_files').addClass('required');
|
||||||
jform_gxilNjehSq_required = false;
|
jform_XolZULNBiI_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('.note_manual_dropbox').closest('.control-group').show();
|
jQuery('.note_manual_dropbox').closest('.control-group').show();
|
||||||
@ -297,155 +302,155 @@ function gxilNje(build_gxilNje,source_gxilNje)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_manual_files').closest('.control-group').hide();
|
jQuery('#jform_manual_files').closest('.control-group').hide();
|
||||||
if (!jform_gxilNjehSq_required)
|
if (!jform_XolZULNBiI_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('manual_files',1);
|
updateFieldRequired('manual_files',1);
|
||||||
jQuery('#jform_manual_files').removeAttr('required');
|
jQuery('#jform_manual_files').removeAttr('required');
|
||||||
jQuery('#jform_manual_files').removeAttr('aria-required');
|
jQuery('#jform_manual_files').removeAttr('aria-required');
|
||||||
jQuery('#jform_manual_files').removeClass('required');
|
jQuery('#jform_manual_files').removeClass('required');
|
||||||
jform_gxilNjehSq_required = true;
|
jform_XolZULNBiI_required = true;
|
||||||
}
|
}
|
||||||
jQuery('.note_manual_dropbox').closest('.control-group').hide();
|
jQuery('.note_manual_dropbox').closest('.control-group').hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the gxilNje Some function
|
// the XolZULN Some function
|
||||||
function build_gxilNje_SomeFunc(build_gxilNje)
|
function build_XolZULN_SomeFunc(build_XolZULN)
|
||||||
{
|
{
|
||||||
// [7973] set the function logic
|
// [8213] set the function logic
|
||||||
if (build_gxilNje == 1)
|
if (build_XolZULN == 1)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// the gxilNje Some function
|
// the XolZULN Some function
|
||||||
function source_gxilNje_SomeFunc(source_gxilNje)
|
function source_XolZULN_SomeFunc(source_XolZULN)
|
||||||
{
|
{
|
||||||
// [7973] set the function logic
|
// [8213] set the function logic
|
||||||
if (source_gxilNje == 2)
|
if (source_XolZULN == 2)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// the oQgboDx function
|
// the BxTsmCr function
|
||||||
function oQgboDx(source_oQgboDx)
|
function BxTsmCr(source_BxTsmCr)
|
||||||
{
|
{
|
||||||
if (isSet(source_oQgboDx) && source_oQgboDx.constructor !== Array)
|
if (isSet(source_BxTsmCr) && source_BxTsmCr.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_oQgboDx = source_oQgboDx;
|
var temp_BxTsmCr = source_BxTsmCr;
|
||||||
var source_oQgboDx = [];
|
var source_BxTsmCr = [];
|
||||||
source_oQgboDx.push(temp_oQgboDx);
|
source_BxTsmCr.push(temp_BxTsmCr);
|
||||||
}
|
}
|
||||||
else if (!isSet(source_oQgboDx))
|
else if (!isSet(source_BxTsmCr))
|
||||||
{
|
{
|
||||||
var source_oQgboDx = [];
|
var source_BxTsmCr = [];
|
||||||
}
|
}
|
||||||
var source = source_oQgboDx.some(source_oQgboDx_SomeFunc);
|
var source = source_BxTsmCr.some(source_BxTsmCr_SomeFunc);
|
||||||
|
|
||||||
|
|
||||||
// [7986] set this function logic
|
// [8226] set this function logic
|
||||||
if (source)
|
if (source)
|
||||||
{
|
{
|
||||||
jQuery('#jform_local_files').closest('.control-group').show();
|
jQuery('#jform_local_files').closest('.control-group').show();
|
||||||
if (jform_oQgboDxRIY_required)
|
if (jform_BxTsmCrfEH_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('local_files',0);
|
updateFieldRequired('local_files',0);
|
||||||
jQuery('#jform_local_files').prop('required','required');
|
jQuery('#jform_local_files').prop('required','required');
|
||||||
jQuery('#jform_local_files').attr('aria-required',true);
|
jQuery('#jform_local_files').attr('aria-required',true);
|
||||||
jQuery('#jform_local_files').addClass('required');
|
jQuery('#jform_local_files').addClass('required');
|
||||||
jform_oQgboDxRIY_required = false;
|
jform_BxTsmCrfEH_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_local_files').closest('.control-group').hide();
|
jQuery('#jform_local_files').closest('.control-group').hide();
|
||||||
if (!jform_oQgboDxRIY_required)
|
if (!jform_BxTsmCrfEH_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('local_files',1);
|
updateFieldRequired('local_files',1);
|
||||||
jQuery('#jform_local_files').removeAttr('required');
|
jQuery('#jform_local_files').removeAttr('required');
|
||||||
jQuery('#jform_local_files').removeAttr('aria-required');
|
jQuery('#jform_local_files').removeAttr('aria-required');
|
||||||
jQuery('#jform_local_files').removeClass('required');
|
jQuery('#jform_local_files').removeClass('required');
|
||||||
jform_oQgboDxRIY_required = true;
|
jform_BxTsmCrfEH_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the oQgboDx Some function
|
// the BxTsmCr Some function
|
||||||
function source_oQgboDx_SomeFunc(source_oQgboDx)
|
function source_BxTsmCr_SomeFunc(source_BxTsmCr)
|
||||||
{
|
{
|
||||||
// [7973] set the function logic
|
// [8213] set the function logic
|
||||||
if (source_oQgboDx == 1)
|
if (source_BxTsmCr == 1)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// the YcaNolt function
|
// the DrXlXWE function
|
||||||
function YcaNolt(source_YcaNolt)
|
function DrXlXWE(source_DrXlXWE)
|
||||||
{
|
{
|
||||||
if (isSet(source_YcaNolt) && source_YcaNolt.constructor !== Array)
|
if (isSet(source_DrXlXWE) && source_DrXlXWE.constructor !== Array)
|
||||||
{
|
{
|
||||||
var temp_YcaNolt = source_YcaNolt;
|
var temp_DrXlXWE = source_DrXlXWE;
|
||||||
var source_YcaNolt = [];
|
var source_DrXlXWE = [];
|
||||||
source_YcaNolt.push(temp_YcaNolt);
|
source_DrXlXWE.push(temp_DrXlXWE);
|
||||||
}
|
}
|
||||||
else if (!isSet(source_YcaNolt))
|
else if (!isSet(source_DrXlXWE))
|
||||||
{
|
{
|
||||||
var source_YcaNolt = [];
|
var source_DrXlXWE = [];
|
||||||
}
|
}
|
||||||
var source = source_YcaNolt.some(source_YcaNolt_SomeFunc);
|
var source = source_DrXlXWE.some(source_DrXlXWE_SomeFunc);
|
||||||
|
|
||||||
|
|
||||||
// [7986] set this function logic
|
// [8226] set this function logic
|
||||||
if (source)
|
if (source)
|
||||||
{
|
{
|
||||||
jQuery('#jform_url').closest('.control-group').show();
|
jQuery('#jform_url').closest('.control-group').show();
|
||||||
if (jform_YcaNoltkqP_required)
|
if (jform_DrXlXWEDhG_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('url',0);
|
updateFieldRequired('url',0);
|
||||||
jQuery('#jform_url').prop('required','required');
|
jQuery('#jform_url').prop('required','required');
|
||||||
jQuery('#jform_url').attr('aria-required',true);
|
jQuery('#jform_url').attr('aria-required',true);
|
||||||
jQuery('#jform_url').addClass('required');
|
jQuery('#jform_url').addClass('required');
|
||||||
jform_YcaNoltkqP_required = false;
|
jform_DrXlXWEDhG_required = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
jQuery('#jform_url').closest('.control-group').hide();
|
jQuery('#jform_url').closest('.control-group').hide();
|
||||||
if (!jform_YcaNoltkqP_required)
|
if (!jform_DrXlXWEDhG_required)
|
||||||
{
|
{
|
||||||
updateFieldRequired('url',1);
|
updateFieldRequired('url',1);
|
||||||
jQuery('#jform_url').removeAttr('required');
|
jQuery('#jform_url').removeAttr('required');
|
||||||
jQuery('#jform_url').removeAttr('aria-required');
|
jQuery('#jform_url').removeAttr('aria-required');
|
||||||
jQuery('#jform_url').removeClass('required');
|
jQuery('#jform_url').removeClass('required');
|
||||||
jform_YcaNoltkqP_required = true;
|
jform_DrXlXWEDhG_required = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the YcaNolt Some function
|
// the DrXlXWE Some function
|
||||||
function source_YcaNolt_SomeFunc(source_YcaNolt)
|
function source_DrXlXWE_SomeFunc(source_DrXlXWE)
|
||||||
{
|
{
|
||||||
// [7973] set the function logic
|
// [8213] set the function logic
|
||||||
if (source_YcaNolt == 3)
|
if (source_DrXlXWE == 3)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// the VrtcKcp function
|
// the jgbBgTf function
|
||||||
function VrtcKcp(link_type_VrtcKcp)
|
function jgbBgTf(link_type_jgbBgTf)
|
||||||
{
|
{
|
||||||
// [8008] set the function logic
|
// [8248] set the function logic
|
||||||
if (link_type_VrtcKcp == 2)
|
if (link_type_jgbBgTf == 2)
|
||||||
{
|
{
|
||||||
jQuery('.note_link_directed').closest('.control-group').show();
|
jQuery('.note_link_directed').closest('.control-group').show();
|
||||||
}
|
}
|
||||||
@ -455,11 +460,11 @@ function VrtcKcp(link_type_VrtcKcp)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the KohbyVh function
|
// the TvlDXQo function
|
||||||
function KohbyVh(link_type_KohbyVh)
|
function TvlDXQo(link_type_TvlDXQo)
|
||||||
{
|
{
|
||||||
// [8008] set the function logic
|
// [8248] set the function logic
|
||||||
if (link_type_KohbyVh == 1)
|
if (link_type_TvlDXQo == 1)
|
||||||
{
|
{
|
||||||
jQuery('.note_link_encrypted').closest('.control-group').show();
|
jQuery('.note_link_encrypted').closest('.control-group').show();
|
||||||
}
|
}
|
||||||
|
@ -4,15 +4,15 @@
|
|||||||
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
|
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
|
||||||
>
|
>
|
||||||
<fieldset name="details">
|
<fieldset name="details">
|
||||||
<!-- [11019] Default Fields. -->
|
<!-- [11263] Default Fields. -->
|
||||||
<!-- [11020] Id Field. Type: Text (joomla) -->
|
<!-- [11264] Id Field. Type: Text (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="id"
|
name="id"
|
||||||
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
|
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
|
||||||
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
|
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
/>
|
/>
|
||||||
<!-- [11027] Date Created Field. Type: Calendar (joomla) -->
|
<!-- [11271] Date Created Field. Type: Calendar (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="created"
|
name="created"
|
||||||
type="calendar"
|
type="calendar"
|
||||||
@ -22,14 +22,14 @@
|
|||||||
format="%Y-%m-%d %H:%M:%S"
|
format="%Y-%m-%d %H:%M:%S"
|
||||||
filter="user_utc"
|
filter="user_utc"
|
||||||
/>
|
/>
|
||||||
<!-- [11038] User Created Field. Type: User (joomla) -->
|
<!-- [11282] User Created Field. Type: User (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="created_by"
|
name="created_by"
|
||||||
type="user"
|
type="user"
|
||||||
label="COM_SERMONDISTRIBUTOR_SERMON_CREATED_BY_LABEL"
|
label="COM_SERMONDISTRIBUTOR_SERMON_CREATED_BY_LABEL"
|
||||||
description="COM_SERMONDISTRIBUTOR_SERMON_CREATED_BY_DESC"
|
description="COM_SERMONDISTRIBUTOR_SERMON_CREATED_BY_DESC"
|
||||||
/>
|
/>
|
||||||
<!-- [11046] Published Field. Type: List (joomla) -->
|
<!-- [11290] Published Field. Type: List (joomla) -->
|
||||||
<field name="published" type="list" label="JSTATUS"
|
<field name="published" type="list" label="JSTATUS"
|
||||||
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
|
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
|
||||||
filter="intval" size="1" default="1" >
|
filter="intval" size="1" default="1" >
|
||||||
@ -42,18 +42,18 @@
|
|||||||
<option value="-2">
|
<option value="-2">
|
||||||
JTRASHED</option>
|
JTRASHED</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- [11061] Date Modified Field. Type: Calendar (joomla) -->
|
<!-- [11305] Date Modified Field. Type: Calendar (joomla) -->
|
||||||
<field name="modified" type="calendar" class="readonly"
|
<field name="modified" type="calendar" class="readonly"
|
||||||
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
|
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
|
||||||
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
|
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
|
||||||
<!-- [11065] User Modified Field. Type: User (joomla) -->
|
<!-- [11309] User Modified Field. Type: User (joomla) -->
|
||||||
<field name="modified_by" type="user"
|
<field name="modified_by" type="user"
|
||||||
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
|
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
|
||||||
class="readonly"
|
class="readonly"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
<!-- [11075] Access Field. Type: Accesslevel (joomla) -->
|
<!-- [11319] Access Field. Type: Accesslevel (joomla) -->
|
||||||
<field name="access"
|
<field name="access"
|
||||||
type="accesslevel"
|
type="accesslevel"
|
||||||
label="JFIELD_ACCESS_LABEL"
|
label="JFIELD_ACCESS_LABEL"
|
||||||
@ -61,7 +61,7 @@
|
|||||||
default="1"
|
default="1"
|
||||||
required="false"
|
required="false"
|
||||||
/>
|
/>
|
||||||
<!-- [11085] Ordering Field. Type: Numbers (joomla) -->
|
<!-- [11329] Ordering Field. Type: Numbers (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="ordering"
|
name="ordering"
|
||||||
type="number"
|
type="number"
|
||||||
@ -72,7 +72,7 @@
|
|||||||
size="6"
|
size="6"
|
||||||
required="false"
|
required="false"
|
||||||
/>
|
/>
|
||||||
<!-- [11097] Version Field. Type: Text (joomla) -->
|
<!-- [11341] Version Field. Type: Text (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="version"
|
name="version"
|
||||||
type="text"
|
type="text"
|
||||||
@ -83,7 +83,7 @@
|
|||||||
readonly="true"
|
readonly="true"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
<!-- [11111] Metakey Field. Type: Textarea (joomla) -->
|
<!-- [11355] Metakey Field. Type: Textarea (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="metakey"
|
name="metakey"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
@ -92,7 +92,7 @@
|
|||||||
rows="3"
|
rows="3"
|
||||||
cols="30"
|
cols="30"
|
||||||
/>
|
/>
|
||||||
<!-- [11120] Metadesc Field. Type: Textarea (joomla) -->
|
<!-- [11364] Metadesc Field. Type: Textarea (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="metadesc"
|
name="metadesc"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
@ -101,8 +101,8 @@
|
|||||||
rows="3"
|
rows="3"
|
||||||
cols="30"
|
cols="30"
|
||||||
/>
|
/>
|
||||||
<!-- [11130] Dynamic Fields. -->
|
<!-- [11374] Dynamic Fields. -->
|
||||||
<!-- [11366] Name Field. Type: Text. (joomla) -->
|
<!-- [11610] Name Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="text"
|
||||||
name="name"
|
name="name"
|
||||||
@ -118,7 +118,7 @@
|
|||||||
message="Error! Please add name here."
|
message="Error! Please add name here."
|
||||||
hint="COM_SERMONDISTRIBUTOR_SERMON_NAME_HINT"
|
hint="COM_SERMONDISTRIBUTOR_SERMON_NAME_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- [11487] Preacher Field. Type: Preachers. (custom) -->
|
<!-- [11731] Preacher Field. Type: Preachers. (custom) -->
|
||||||
<field
|
<field
|
||||||
type="preachers"
|
type="preachers"
|
||||||
name="preacher"
|
name="preacher"
|
||||||
@ -129,7 +129,7 @@
|
|||||||
default="0"
|
default="0"
|
||||||
button="true"
|
button="true"
|
||||||
/>
|
/>
|
||||||
<!-- [11487] Series Field. Type: Series. (custom) -->
|
<!-- [11731] Series Field. Type: Series. (custom) -->
|
||||||
<field
|
<field
|
||||||
type="series"
|
type="series"
|
||||||
name="series"
|
name="series"
|
||||||
@ -140,7 +140,7 @@
|
|||||||
default="0"
|
default="0"
|
||||||
button="true"
|
button="true"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Short_description Field. Type: Text. (joomla) -->
|
<!-- [11610] Short_description Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="text"
|
||||||
name="short_description"
|
name="short_description"
|
||||||
@ -154,7 +154,7 @@
|
|||||||
message="Error! Please add some short description here."
|
message="Error! Please add some short description here."
|
||||||
hint="COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION_HINT"
|
hint="COM_SERMONDISTRIBUTOR_SERMON_SHORT_DESCRIPTION_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Catid Field. Type: Category. (joomla) -->
|
<!-- [11610] Catid Field. Type: Category. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="category"
|
type="category"
|
||||||
name="catid"
|
name="catid"
|
||||||
@ -164,7 +164,7 @@
|
|||||||
description="COM_SERMONDISTRIBUTOR_SERMON_CATID_DESCRIPTION"
|
description="COM_SERMONDISTRIBUTOR_SERMON_CATID_DESCRIPTION"
|
||||||
class="inputbox"
|
class="inputbox"
|
||||||
/>
|
/>
|
||||||
<!-- [11280] Link_type Field. Type: Radio. (joomla) -->
|
<!-- [11524] Link_type Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
name="link_type"
|
name="link_type"
|
||||||
@ -173,13 +173,13 @@
|
|||||||
class="btn-group btn-group-yesno"
|
class="btn-group btn-group-yesno"
|
||||||
default="1"
|
default="1"
|
||||||
required="true">
|
required="true">
|
||||||
<!-- [11352] Option Set. -->
|
<!-- [11596] Option Set. -->
|
||||||
<option value="1">
|
<option value="1">
|
||||||
COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED</option>
|
COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED</option>
|
||||||
<option value="2">
|
<option value="2">
|
||||||
COM_SERMONDISTRIBUTOR_SERMON_DIRECT</option>
|
COM_SERMONDISTRIBUTOR_SERMON_DIRECT</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- [11280] Source Field. Type: List. (joomla) -->
|
<!-- [11524] Source Field. Type: List. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="list"
|
type="list"
|
||||||
name="source"
|
name="source"
|
||||||
@ -189,7 +189,7 @@
|
|||||||
multiple="false"
|
multiple="false"
|
||||||
filter="INT"
|
filter="INT"
|
||||||
required="true">
|
required="true">
|
||||||
<!-- [11352] Option Set. -->
|
<!-- [11596] Option Set. -->
|
||||||
<option value="">
|
<option value="">
|
||||||
COM_SERMONDISTRIBUTOR_SERMON_SELECT_SOURCE</option>
|
COM_SERMONDISTRIBUTOR_SERMON_SELECT_SOURCE</option>
|
||||||
<option value="1">
|
<option value="1">
|
||||||
@ -199,7 +199,7 @@
|
|||||||
<option value="3">
|
<option value="3">
|
||||||
COM_SERMONDISTRIBUTOR_SERMON_URL</option>
|
COM_SERMONDISTRIBUTOR_SERMON_URL</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- [11366] Icon Field. Type: Media. (joomla) -->
|
<!-- [11610] Icon Field. Type: Media. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="media"
|
type="media"
|
||||||
name="icon"
|
name="icon"
|
||||||
@ -207,7 +207,7 @@
|
|||||||
description="COM_SERMONDISTRIBUTOR_SERMON_ICON_DESCRIPTION"
|
description="COM_SERMONDISTRIBUTOR_SERMON_ICON_DESCRIPTION"
|
||||||
directory=""
|
directory=""
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Tags Field. Type: Tag. (joomla) -->
|
<!-- [11610] Tags Field. Type: Tag. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="tag"
|
type="tag"
|
||||||
name="tags"
|
name="tags"
|
||||||
@ -218,7 +218,7 @@
|
|||||||
published="true"
|
published="true"
|
||||||
multiple="true"
|
multiple="true"
|
||||||
/>
|
/>
|
||||||
<!-- [11487] Local_files Field. Type: Localfiles. (custom) -->
|
<!-- [11731] Local_files Field. Type: Localfiles. (custom) -->
|
||||||
<field
|
<field
|
||||||
type="localfiles"
|
type="localfiles"
|
||||||
name="local_files"
|
name="local_files"
|
||||||
@ -230,7 +230,7 @@
|
|||||||
required="true"
|
required="true"
|
||||||
button="false"
|
button="false"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Description Field. Type: Editor. (joomla) -->
|
<!-- [11610] Description Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="editor"
|
type="editor"
|
||||||
name="description"
|
name="description"
|
||||||
@ -242,9 +242,9 @@
|
|||||||
buttons="false"
|
buttons="false"
|
||||||
filter="safehtml"
|
filter="safehtml"
|
||||||
/>
|
/>
|
||||||
<!-- [11380] Note_auto_dropbox Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- [11624] Note_auto_dropbox Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_auto_dropbox" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_AUTO_DROPBOX_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_AUTO_DROPBOX_DESCRIPTION" heading="h4" class="alert alert-info note_auto_dropbox" />
|
<field type="note" name="note_auto_dropbox" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_AUTO_DROPBOX_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_AUTO_DROPBOX_DESCRIPTION" heading="h4" class="alert alert-info note_auto_dropbox" />
|
||||||
<!-- [11366] Alias Field. Type: Text. (joomla) -->
|
<!-- [11610] Alias Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="text"
|
||||||
name="alias"
|
name="alias"
|
||||||
@ -253,19 +253,19 @@
|
|||||||
filter="STRING"
|
filter="STRING"
|
||||||
hint="COM_SERMONDISTRIBUTOR_SERMON_ALIAS_HINT"
|
hint="COM_SERMONDISTRIBUTOR_SERMON_ALIAS_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Not_required Field. Type: Hidden. (joomla) -->
|
<!-- [11610] Not_required Field. Type: Hidden. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="hidden"
|
type="hidden"
|
||||||
name="not_required"
|
name="not_required"
|
||||||
default="[]"
|
default="[]"
|
||||||
/>
|
/>
|
||||||
<!-- [11380] Note_link_directed Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- [11624] Note_link_directed Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_link_directed" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_DIRECTED_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_DIRECTED_DESCRIPTION" heading="h4" class="alert alert-info note_link_directed" close="true" />
|
<field type="note" name="note_link_directed" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_DIRECTED_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_DIRECTED_DESCRIPTION" heading="h4" class="alert alert-info note_link_directed" close="true" />
|
||||||
<!-- [11380] Note_manual_dropbox Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- [11624] Note_manual_dropbox Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_manual_dropbox" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_MANUAL_DROPBOX_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_MANUAL_DROPBOX_DESCRIPTION" heading="h4" class="alert alert-info note_manual_dropbox" />
|
<field type="note" name="note_manual_dropbox" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_MANUAL_DROPBOX_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_MANUAL_DROPBOX_DESCRIPTION" heading="h4" class="alert alert-info note_manual_dropbox" />
|
||||||
<!-- [11380] Note_link_encrypted Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- [11624] Note_link_encrypted Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_link_encrypted" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_ENCRYPTED_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_ENCRYPTED_DESCRIPTION" heading="h4" class="alert alert-info note_link_encrypted" close="true" />
|
<field type="note" name="note_link_encrypted" label="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_ENCRYPTED_LABEL" description="COM_SERMONDISTRIBUTOR_SERMON_NOTE_LINK_ENCRYPTED_DESCRIPTION" heading="h4" class="alert alert-info note_link_encrypted" close="true" />
|
||||||
<!-- [11487] Manual_files Field. Type: Dropboxfiles. (custom) -->
|
<!-- [11731] Manual_files Field. Type: Dropboxfiles. (custom) -->
|
||||||
<field
|
<field
|
||||||
type="dropboxfiles"
|
type="dropboxfiles"
|
||||||
name="manual_files"
|
name="manual_files"
|
||||||
@ -277,7 +277,7 @@
|
|||||||
required="true"
|
required="true"
|
||||||
button="false"
|
button="false"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Scripture Field. Type: Text. (joomla) -->
|
<!-- [11610] Scripture Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="text"
|
||||||
name="scripture"
|
name="scripture"
|
||||||
@ -293,7 +293,7 @@
|
|||||||
message="Error! Please add some scripture reference here."
|
message="Error! Please add some scripture reference here."
|
||||||
hint="COM_SERMONDISTRIBUTOR_SERMON_SCRIPTURE_HINT"
|
hint="COM_SERMONDISTRIBUTOR_SERMON_SCRIPTURE_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Url Field. Type: Url. (joomla) -->
|
<!-- [11610] Url Field. Type: Url. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="url"
|
type="url"
|
||||||
name="url"
|
name="url"
|
||||||
@ -308,7 +308,7 @@
|
|||||||
message="Error! Please add sermon url here."
|
message="Error! Please add sermon url here."
|
||||||
hint="COM_SERMONDISTRIBUTOR_SERMON_URL_HINT"
|
hint="COM_SERMONDISTRIBUTOR_SERMON_URL_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- [11280] Build Field. Type: Radio. (joomla) -->
|
<!-- [11524] Build Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
name="build"
|
name="build"
|
||||||
@ -317,13 +317,13 @@
|
|||||||
class="btn-group btn-group-yesno"
|
class="btn-group btn-group-yesno"
|
||||||
default="1"
|
default="1"
|
||||||
required="true">
|
required="true">
|
||||||
<!-- [11352] Option Set. -->
|
<!-- [11596] Option Set. -->
|
||||||
<option value="1">
|
<option value="1">
|
||||||
COM_SERMONDISTRIBUTOR_SERMON_MANUAL</option>
|
COM_SERMONDISTRIBUTOR_SERMON_MANUAL</option>
|
||||||
<option value="2">
|
<option value="2">
|
||||||
COM_SERMONDISTRIBUTOR_SERMON_AUTOMATIC</option>
|
COM_SERMONDISTRIBUTOR_SERMON_AUTOMATIC</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- [11366] Auto_sermons Field. Type: Hidden. (joomla) -->
|
<!-- [11610] Auto_sermons Field. Type: Hidden. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="hidden"
|
type="hidden"
|
||||||
name="auto_sermons"
|
name="auto_sermons"
|
||||||
@ -331,11 +331,11 @@
|
|||||||
/>
|
/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<!-- [11149] Metadata Fields. -->
|
<!-- [11393] Metadata Fields. -->
|
||||||
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||||
<fieldset name="vdmmetadata"
|
<fieldset name="vdmmetadata"
|
||||||
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||||
<!-- [11153] Robots Field. Type: List (joomla) -->
|
<!-- [11397] Robots Field. Type: List (joomla) -->
|
||||||
<field name="robots"
|
<field name="robots"
|
||||||
type="list"
|
type="list"
|
||||||
label="JFIELD_METADATA_ROBOTS_LABEL"
|
label="JFIELD_METADATA_ROBOTS_LABEL"
|
||||||
@ -346,13 +346,13 @@
|
|||||||
<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
|
<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
|
||||||
<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
|
<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- [11164] Author Field. Type: Text (joomla) -->
|
<!-- [11408] Author Field. Type: Text (joomla) -->
|
||||||
<field name="author"
|
<field name="author"
|
||||||
type="text"
|
type="text"
|
||||||
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
|
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
|
||||||
size="20"
|
size="20"
|
||||||
/>
|
/>
|
||||||
<!-- [11170] Rights Field. Type: Textarea (joomla) -->
|
<!-- [11414] Rights Field. Type: Textarea (joomla) -->
|
||||||
<field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL"
|
<field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL"
|
||||||
description="JFIELD_META_RIGHTS_DESC" required="false" filter="string"
|
description="JFIELD_META_RIGHTS_DESC" required="false" filter="string"
|
||||||
cols="30" rows="2"
|
cols="30" rows="2"
|
||||||
@ -360,15 +360,15 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</fields>
|
</fields>
|
||||||
|
|
||||||
<!-- [10053] Access Control Fields. -->
|
<!-- [10296] Access Control Fields. -->
|
||||||
<fieldset name="accesscontrol">
|
<fieldset name="accesscontrol">
|
||||||
<!-- [10055] Asset Id Field. Type: Hidden (joomla) -->
|
<!-- [10298] Asset Id Field. Type: Hidden (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="asset_id"
|
name="asset_id"
|
||||||
type="hidden"
|
type="hidden"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
<!-- [10061] Rules Field. Type: Rules (joomla) -->
|
<!-- [10304] Rules Field. Type: Rules (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="rules"
|
name="rules"
|
||||||
type="rules"
|
type="rules"
|
||||||
|
@ -1,20 +1,25 @@
|
|||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage statistic.js
|
@subpackage statistic.js
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,15 +4,15 @@
|
|||||||
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
|
addfieldpath="/administrator/components/com_sermondistributor/models/fields"
|
||||||
>
|
>
|
||||||
<fieldset name="details">
|
<fieldset name="details">
|
||||||
<!-- [11019] Default Fields. -->
|
<!-- [11263] Default Fields. -->
|
||||||
<!-- [11020] Id Field. Type: Text (joomla) -->
|
<!-- [11264] Id Field. Type: Text (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="id"
|
name="id"
|
||||||
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
|
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
|
||||||
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
|
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
/>
|
/>
|
||||||
<!-- [11027] Date Created Field. Type: Calendar (joomla) -->
|
<!-- [11271] Date Created Field. Type: Calendar (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="created"
|
name="created"
|
||||||
type="calendar"
|
type="calendar"
|
||||||
@ -22,14 +22,14 @@
|
|||||||
format="%Y-%m-%d %H:%M:%S"
|
format="%Y-%m-%d %H:%M:%S"
|
||||||
filter="user_utc"
|
filter="user_utc"
|
||||||
/>
|
/>
|
||||||
<!-- [11038] User Created Field. Type: User (joomla) -->
|
<!-- [11282] User Created Field. Type: User (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="created_by"
|
name="created_by"
|
||||||
type="user"
|
type="user"
|
||||||
label="COM_SERMONDISTRIBUTOR_STATISTIC_CREATED_BY_LABEL"
|
label="COM_SERMONDISTRIBUTOR_STATISTIC_CREATED_BY_LABEL"
|
||||||
description="COM_SERMONDISTRIBUTOR_STATISTIC_CREATED_BY_DESC"
|
description="COM_SERMONDISTRIBUTOR_STATISTIC_CREATED_BY_DESC"
|
||||||
/>
|
/>
|
||||||
<!-- [11046] Published Field. Type: List (joomla) -->
|
<!-- [11290] Published Field. Type: List (joomla) -->
|
||||||
<field name="published" type="list" label="JSTATUS"
|
<field name="published" type="list" label="JSTATUS"
|
||||||
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
|
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
|
||||||
filter="intval" size="1" default="1" >
|
filter="intval" size="1" default="1" >
|
||||||
@ -42,18 +42,18 @@
|
|||||||
<option value="-2">
|
<option value="-2">
|
||||||
JTRASHED</option>
|
JTRASHED</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- [11061] Date Modified Field. Type: Calendar (joomla) -->
|
<!-- [11305] Date Modified Field. Type: Calendar (joomla) -->
|
||||||
<field name="modified" type="calendar" class="readonly"
|
<field name="modified" type="calendar" class="readonly"
|
||||||
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
|
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
|
||||||
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
|
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
|
||||||
<!-- [11065] User Modified Field. Type: User (joomla) -->
|
<!-- [11309] User Modified Field. Type: User (joomla) -->
|
||||||
<field name="modified_by" type="user"
|
<field name="modified_by" type="user"
|
||||||
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
|
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
|
||||||
class="readonly"
|
class="readonly"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
<!-- [11075] Access Field. Type: Accesslevel (joomla) -->
|
<!-- [11319] Access Field. Type: Accesslevel (joomla) -->
|
||||||
<field name="access"
|
<field name="access"
|
||||||
type="accesslevel"
|
type="accesslevel"
|
||||||
label="JFIELD_ACCESS_LABEL"
|
label="JFIELD_ACCESS_LABEL"
|
||||||
@ -61,7 +61,7 @@
|
|||||||
default="1"
|
default="1"
|
||||||
required="false"
|
required="false"
|
||||||
/>
|
/>
|
||||||
<!-- [11085] Ordering Field. Type: Numbers (joomla) -->
|
<!-- [11329] Ordering Field. Type: Numbers (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="ordering"
|
name="ordering"
|
||||||
type="number"
|
type="number"
|
||||||
@ -72,7 +72,7 @@
|
|||||||
size="6"
|
size="6"
|
||||||
required="false"
|
required="false"
|
||||||
/>
|
/>
|
||||||
<!-- [11097] Version Field. Type: Text (joomla) -->
|
<!-- [11341] Version Field. Type: Text (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="version"
|
name="version"
|
||||||
type="text"
|
type="text"
|
||||||
@ -83,7 +83,7 @@
|
|||||||
readonly="true"
|
readonly="true"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
<!-- [11111] Metakey Field. Type: Textarea (joomla) -->
|
<!-- [11355] Metakey Field. Type: Textarea (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="metakey"
|
name="metakey"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
@ -92,7 +92,7 @@
|
|||||||
rows="3"
|
rows="3"
|
||||||
cols="30"
|
cols="30"
|
||||||
/>
|
/>
|
||||||
<!-- [11120] Metadesc Field. Type: Textarea (joomla) -->
|
<!-- [11364] Metadesc Field. Type: Textarea (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="metadesc"
|
name="metadesc"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
@ -101,8 +101,8 @@
|
|||||||
rows="3"
|
rows="3"
|
||||||
cols="30"
|
cols="30"
|
||||||
/>
|
/>
|
||||||
<!-- [11130] Dynamic Fields. -->
|
<!-- [11374] Dynamic Fields. -->
|
||||||
<!-- [11366] Filename Field. Type: Text. (joomla) -->
|
<!-- [11610] Filename Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="text"
|
||||||
name="filename"
|
name="filename"
|
||||||
@ -116,7 +116,7 @@
|
|||||||
message="Error! Please add file name here."
|
message="Error! Please add file name here."
|
||||||
hint="COM_SERMONDISTRIBUTOR_STATISTIC_FILENAME_HINT"
|
hint="COM_SERMONDISTRIBUTOR_STATISTIC_FILENAME_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- [11487] Sermon Field. Type: Sermon. (custom) -->
|
<!-- [11731] Sermon Field. Type: Sermon. (custom) -->
|
||||||
<field
|
<field
|
||||||
type="sermon"
|
type="sermon"
|
||||||
name="sermon"
|
name="sermon"
|
||||||
@ -127,7 +127,7 @@
|
|||||||
required="true"
|
required="true"
|
||||||
button="true"
|
button="true"
|
||||||
/>
|
/>
|
||||||
<!-- [11487] Preacher Field. Type: Preachers. (custom) -->
|
<!-- [11731] Preacher Field. Type: Preachers. (custom) -->
|
||||||
<field
|
<field
|
||||||
type="preachers"
|
type="preachers"
|
||||||
name="preacher"
|
name="preacher"
|
||||||
@ -138,7 +138,7 @@
|
|||||||
default="0"
|
default="0"
|
||||||
button="true"
|
button="true"
|
||||||
/>
|
/>
|
||||||
<!-- [11487] Series Field. Type: Series. (custom) -->
|
<!-- [11731] Series Field. Type: Series. (custom) -->
|
||||||
<field
|
<field
|
||||||
type="series"
|
type="series"
|
||||||
name="series"
|
name="series"
|
||||||
@ -149,7 +149,7 @@
|
|||||||
default="0"
|
default="0"
|
||||||
button="true"
|
button="true"
|
||||||
/>
|
/>
|
||||||
<!-- [11366] Counter Field. Type: Text. (joomla) -->
|
<!-- [11610] Counter Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="text"
|
||||||
name="counter"
|
name="counter"
|
||||||
@ -165,11 +165,11 @@
|
|||||||
/>
|
/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<!-- [11149] Metadata Fields. -->
|
<!-- [11393] Metadata Fields. -->
|
||||||
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||||
<fieldset name="vdmmetadata"
|
<fieldset name="vdmmetadata"
|
||||||
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
|
||||||
<!-- [11153] Robots Field. Type: List (joomla) -->
|
<!-- [11397] Robots Field. Type: List (joomla) -->
|
||||||
<field name="robots"
|
<field name="robots"
|
||||||
type="list"
|
type="list"
|
||||||
label="JFIELD_METADATA_ROBOTS_LABEL"
|
label="JFIELD_METADATA_ROBOTS_LABEL"
|
||||||
@ -180,13 +180,13 @@
|
|||||||
<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
|
<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
|
||||||
<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
|
<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- [11164] Author Field. Type: Text (joomla) -->
|
<!-- [11408] Author Field. Type: Text (joomla) -->
|
||||||
<field name="author"
|
<field name="author"
|
||||||
type="text"
|
type="text"
|
||||||
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
|
label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
|
||||||
size="20"
|
size="20"
|
||||||
/>
|
/>
|
||||||
<!-- [11170] Rights Field. Type: Textarea (joomla) -->
|
<!-- [11414] Rights Field. Type: Textarea (joomla) -->
|
||||||
<field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL"
|
<field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL"
|
||||||
description="JFIELD_META_RIGHTS_DESC" required="false" filter="string"
|
description="JFIELD_META_RIGHTS_DESC" required="false" filter="string"
|
||||||
cols="30" rows="2"
|
cols="30" rows="2"
|
||||||
@ -194,15 +194,15 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</fields>
|
</fields>
|
||||||
|
|
||||||
<!-- [10053] Access Control Fields. -->
|
<!-- [10296] Access Control Fields. -->
|
||||||
<fieldset name="accesscontrol">
|
<fieldset name="accesscontrol">
|
||||||
<!-- [10055] Asset Id Field. Type: Hidden (joomla) -->
|
<!-- [10298] Asset Id Field. Type: Hidden (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="asset_id"
|
name="asset_id"
|
||||||
type="hidden"
|
type="hidden"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
<!-- [10061] Rules Field. Type: Rules (joomla) -->
|
<!-- [10304] Rules Field. Type: Rules (joomla) -->
|
||||||
<field
|
<field
|
||||||
name="rules"
|
name="rules"
|
||||||
type="rules"
|
type="rules"
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage help_document.php
|
@subpackage help_document.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -92,7 +97,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
|
|
||||||
if (!empty($item->groups))
|
if (!empty($item->groups))
|
||||||
{
|
{
|
||||||
// [3996] JSON Decode groups.
|
// [4211] JSON Decode groups.
|
||||||
$item->groups = json_decode($item->groups,true);
|
$item->groups = json_decode($item->groups,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -117,7 +122,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function getForm($data = array(), $loadData = true)
|
public function getForm($data = array(), $loadData = true)
|
||||||
{ // [9566] Get the form.
|
{ // [9806] Get the form.
|
||||||
$form = $this->loadForm('com_sermondistributor.help_document', 'help_document', array('control' => 'jform', 'load_data' => $loadData));
|
$form = $this->loadForm('com_sermondistributor.help_document', 'help_document', array('control' => 'jform', 'load_data' => $loadData));
|
||||||
|
|
||||||
if (empty($form))
|
if (empty($form))
|
||||||
@ -127,12 +132,12 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
|
|
||||||
$jinput = JFactory::getApplication()->input;
|
$jinput = JFactory::getApplication()->input;
|
||||||
|
|
||||||
// [9651] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
|
// [9891] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
|
||||||
if ($jinput->get('a_id'))
|
if ($jinput->get('a_id'))
|
||||||
{
|
{
|
||||||
$id = $jinput->get('a_id', 0, 'INT');
|
$id = $jinput->get('a_id', 0, 'INT');
|
||||||
}
|
}
|
||||||
// [9656] The back end uses id so we use that the rest of the time and set it to 0 by default.
|
// [9896] The back end uses id so we use that the rest of the time and set it to 0 by default.
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$id = $jinput->get('id', 0, 'INT');
|
$id = $jinput->get('id', 0, 'INT');
|
||||||
@ -140,34 +145,34 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
|
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
// [9662] Check for existing item.
|
// [9902] Check for existing item.
|
||||||
// [9663] Modify the form based on Edit State access controls.
|
// [9903] Modify the form based on Edit State access controls.
|
||||||
if ($id != 0 && (!$user->authorise('help_document.edit.state', 'com_sermondistributor.help_document.' . (int) $id))
|
if ($id != 0 && (!$user->authorise('help_document.edit.state', 'com_sermondistributor.help_document.' . (int) $id))
|
||||||
|| ($id == 0 && !$user->authorise('help_document.edit.state', 'com_sermondistributor')))
|
|| ($id == 0 && !$user->authorise('help_document.edit.state', 'com_sermondistributor')))
|
||||||
{
|
{
|
||||||
// [9676] Disable fields for display.
|
// [9916] Disable fields for display.
|
||||||
$form->setFieldAttribute('ordering', 'disabled', 'true');
|
$form->setFieldAttribute('ordering', 'disabled', 'true');
|
||||||
$form->setFieldAttribute('published', 'disabled', 'true');
|
$form->setFieldAttribute('published', 'disabled', 'true');
|
||||||
// [9679] Disable fields while saving.
|
// [9919] Disable fields while saving.
|
||||||
$form->setFieldAttribute('ordering', 'filter', 'unset');
|
$form->setFieldAttribute('ordering', 'filter', 'unset');
|
||||||
$form->setFieldAttribute('published', 'filter', 'unset');
|
$form->setFieldAttribute('published', 'filter', 'unset');
|
||||||
}
|
}
|
||||||
// [9684] Modify the form based on Edit Creaded By access controls.
|
// [9924] Modify the form based on Edit Creaded By access controls.
|
||||||
if (!$user->authorise('core.edit.created_by', 'com_sermondistributor'))
|
if (!$user->authorise('core.edit.created_by', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [9696] Disable fields for display.
|
// [9936] Disable fields for display.
|
||||||
$form->setFieldAttribute('created_by', 'disabled', 'true');
|
$form->setFieldAttribute('created_by', 'disabled', 'true');
|
||||||
// [9698] Disable fields for display.
|
// [9938] Disable fields for display.
|
||||||
$form->setFieldAttribute('created_by', 'readonly', 'true');
|
$form->setFieldAttribute('created_by', 'readonly', 'true');
|
||||||
// [9700] Disable fields while saving.
|
// [9940] Disable fields while saving.
|
||||||
$form->setFieldAttribute('created_by', 'filter', 'unset');
|
$form->setFieldAttribute('created_by', 'filter', 'unset');
|
||||||
}
|
}
|
||||||
// [9703] Modify the form based on Edit Creaded Date access controls.
|
// [9943] Modify the form based on Edit Creaded Date access controls.
|
||||||
if (!$user->authorise('core.edit.created', 'com_sermondistributor'))
|
if (!$user->authorise('core.edit.created', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
// [9715] Disable fields for display.
|
// [9955] Disable fields for display.
|
||||||
$form->setFieldAttribute('created', 'disabled', 'true');
|
$form->setFieldAttribute('created', 'disabled', 'true');
|
||||||
// [9717] Disable fields while saving.
|
// [9957] Disable fields while saving.
|
||||||
$form->setFieldAttribute('created', 'filter', 'unset');
|
$form->setFieldAttribute('created', 'filter', 'unset');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -203,7 +208,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [9867] The record has been set. Check the record permissions.
|
// [10107] The record has been set. Check the record permissions.
|
||||||
return $user->authorise('help_document.delete', 'com_sermondistributor.help_document.' . (int) $record->id);
|
return $user->authorise('help_document.delete', 'com_sermondistributor.help_document.' . (int) $record->id);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -225,14 +230,14 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
|
|
||||||
if ($recordId)
|
if ($recordId)
|
||||||
{
|
{
|
||||||
// [9954] The record has been set. Check the record permissions.
|
// [10194] The record has been set. Check the record permissions.
|
||||||
$permission = $user->authorise('help_document.edit.state', 'com_sermondistributor.help_document.' . (int) $recordId);
|
$permission = $user->authorise('help_document.edit.state', 'com_sermondistributor.help_document.' . (int) $recordId);
|
||||||
if (!$permission && !is_null($permission))
|
if (!$permission && !is_null($permission))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [9971] In the absense of better information, revert to the component permissions.
|
// [10211] In the absense of better information, revert to the component permissions.
|
||||||
return $user->authorise('help_document.edit.state', 'com_sermondistributor');
|
return $user->authorise('help_document.edit.state', 'com_sermondistributor');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -247,7 +252,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
*/
|
*/
|
||||||
protected function allowEdit($data = array(), $key = 'id')
|
protected function allowEdit($data = array(), $key = 'id')
|
||||||
{
|
{
|
||||||
// [9779] Check specific edit permission then general edit permission.
|
// [10019] Check specific edit permission then general edit permission.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
return $user->authorise('help_document.edit', 'com_sermondistributor.help_document.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('help_document.edit', 'com_sermondistributor');
|
return $user->authorise('help_document.edit', 'com_sermondistributor.help_document.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('help_document.edit', 'com_sermondistributor');
|
||||||
@ -346,20 +351,20 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
*/
|
*/
|
||||||
public function validate($form, $data, $group = null)
|
public function validate($form, $data, $group = null)
|
||||||
{
|
{
|
||||||
// [8770] check if the not_required field is set
|
// [9010] check if the not_required field is set
|
||||||
if (SermondistributorHelper::checkString($data['not_required']))
|
if (SermondistributorHelper::checkString($data['not_required']))
|
||||||
{
|
{
|
||||||
$requiredFields = (array) explode(',',(string) $data['not_required']);
|
$requiredFields = (array) explode(',',(string) $data['not_required']);
|
||||||
$requiredFields = array_unique($requiredFields);
|
$requiredFields = array_unique($requiredFields);
|
||||||
// [8775] now change the required field attributes value
|
// [9015] now change the required field attributes value
|
||||||
foreach ($requiredFields as $requiredField)
|
foreach ($requiredFields as $requiredField)
|
||||||
{
|
{
|
||||||
// [8778] make sure there is a string value
|
// [9018] make sure there is a string value
|
||||||
if (SermondistributorHelper::checkString($requiredField))
|
if (SermondistributorHelper::checkString($requiredField))
|
||||||
{
|
{
|
||||||
// [8781] change to false
|
// [9021] change to false
|
||||||
$form->setFieldAttribute($requiredField, 'required', 'false');
|
$form->setFieldAttribute($requiredField, 'required', 'false');
|
||||||
// [8783] also clear the data set
|
// [9023] also clear the data set
|
||||||
$data[$requiredField] = '';
|
$data[$requiredField] = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -379,6 +384,25 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to delete one or more records.
|
||||||
|
*
|
||||||
|
* @param array &$pks An array of record primary keys.
|
||||||
|
*
|
||||||
|
* @return boolean True if successful, false if an error occurs.
|
||||||
|
*
|
||||||
|
* @since 12.2
|
||||||
|
*/
|
||||||
|
public function delete(&$pks)
|
||||||
|
{
|
||||||
|
if (!parent::delete($pks))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to perform batch operations on an item or a set of items.
|
* Method to perform batch operations on an item or a set of items.
|
||||||
*
|
*
|
||||||
@ -490,7 +514,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
{
|
{
|
||||||
if (empty($this->batchSet))
|
if (empty($this->batchSet))
|
||||||
{
|
{
|
||||||
// [4932] Set some needed variables.
|
// [5167] Set some needed variables.
|
||||||
$this->user = JFactory::getUser();
|
$this->user = JFactory::getUser();
|
||||||
$this->table = $this->getTable();
|
$this->table = $this->getTable();
|
||||||
$this->tableClassName = get_class($this->table);
|
$this->tableClassName = get_class($this->table);
|
||||||
@ -504,12 +528,12 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4952] get list of uniqe fields
|
// [5187] get list of uniqe fields
|
||||||
$uniqeFields = $this->getUniqeFields();
|
$uniqeFields = $this->getUniqeFields();
|
||||||
// [4954] remove move_copy from array
|
// [5189] remove move_copy from array
|
||||||
unset($values['move_copy']);
|
unset($values['move_copy']);
|
||||||
|
|
||||||
// [4957] make sure published is set
|
// [5192] make sure published is set
|
||||||
if (!isset($values['published']))
|
if (!isset($values['published']))
|
||||||
{
|
{
|
||||||
$values['published'] = 0;
|
$values['published'] = 0;
|
||||||
@ -521,21 +545,21 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
|
|
||||||
$newIds = array();
|
$newIds = array();
|
||||||
|
|
||||||
// [4994] Parent exists so let's proceed
|
// [5229] Parent exists so let's proceed
|
||||||
while (!empty($pks))
|
while (!empty($pks))
|
||||||
{
|
{
|
||||||
// [4997] Pop the first ID off the stack
|
// [5232] Pop the first ID off the stack
|
||||||
$pk = array_shift($pks);
|
$pk = array_shift($pks);
|
||||||
|
|
||||||
$this->table->reset();
|
$this->table->reset();
|
||||||
|
|
||||||
// [5002] only allow copy if user may edit this item.
|
// [5237] only allow copy if user may edit this item.
|
||||||
|
|
||||||
if (!$this->user->authorise('help_document.edit', $contexts[$pk]))
|
if (!$this->user->authorise('help_document.edit', $contexts[$pk]))
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
// [5012] Not fatal error
|
// [5247] Not fatal error
|
||||||
|
|
||||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||||
|
|
||||||
@ -543,19 +567,19 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5017] Check that the row actually exists
|
// [5252] Check that the row actually exists
|
||||||
if (!$this->table->load($pk))
|
if (!$this->table->load($pk))
|
||||||
{
|
{
|
||||||
if ($error = $this->table->getError())
|
if ($error = $this->table->getError())
|
||||||
{
|
{
|
||||||
// [5022] Fatal error
|
// [5257] Fatal error
|
||||||
$this->setError($error);
|
$this->setError($error);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// [5029] Not fatal error
|
// [5264] Not fatal error
|
||||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -563,7 +587,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
|
|
||||||
list($this->table->title, $this->table->alias) = $this->_generateNewTitle($this->table->alias, $this->table->title);
|
list($this->table->title, $this->table->alias) = $this->_generateNewTitle($this->table->alias, $this->table->title);
|
||||||
|
|
||||||
// [5065] insert all set values
|
// [5300] insert all set values
|
||||||
if (SermondistributorHelper::checkArray($values))
|
if (SermondistributorHelper::checkArray($values))
|
||||||
{
|
{
|
||||||
foreach ($values as $key => $value)
|
foreach ($values as $key => $value)
|
||||||
@ -575,7 +599,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5077] update all uniqe fields
|
// [5312] update all uniqe fields
|
||||||
if (SermondistributorHelper::checkArray($uniqeFields))
|
if (SermondistributorHelper::checkArray($uniqeFields))
|
||||||
{
|
{
|
||||||
foreach ($uniqeFields as $uniqeField)
|
foreach ($uniqeFields as $uniqeField)
|
||||||
@ -584,13 +608,13 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5086] Reset the ID because we are making a copy
|
// [5321] Reset the ID because we are making a copy
|
||||||
$this->table->id = 0;
|
$this->table->id = 0;
|
||||||
|
|
||||||
// [5089] TODO: Deal with ordering?
|
// [5324] TODO: Deal with ordering?
|
||||||
// [5090] $this->table->ordering = 1;
|
// [5325] $this->table->ordering = 1;
|
||||||
|
|
||||||
// [5092] Check the row.
|
// [5327] Check the row.
|
||||||
if (!$this->table->check())
|
if (!$this->table->check())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -603,7 +627,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5105] Store the row.
|
// [5340] Store the row.
|
||||||
if (!$this->table->store())
|
if (!$this->table->store())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -611,14 +635,14 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5113] Get the new item ID
|
// [5348] Get the new item ID
|
||||||
$newId = $this->table->get('id');
|
$newId = $this->table->get('id');
|
||||||
|
|
||||||
// [5116] Add the new ID to the array
|
// [5351] Add the new ID to the array
|
||||||
$newIds[$pk] = $newId;
|
$newIds[$pk] = $newId;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5120] Clean the cache
|
// [5355] Clean the cache
|
||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
@ -639,7 +663,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
{
|
{
|
||||||
if (empty($this->batchSet))
|
if (empty($this->batchSet))
|
||||||
{
|
{
|
||||||
// [4734] Set some needed variables.
|
// [4969] Set some needed variables.
|
||||||
$this->user = JFactory::getUser();
|
$this->user = JFactory::getUser();
|
||||||
$this->table = $this->getTable();
|
$this->table = $this->getTable();
|
||||||
$this->tableClassName = get_class($this->table);
|
$this->tableClassName = get_class($this->table);
|
||||||
@ -654,15 +678,15 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4756] make sure published only updates if user has the permission.
|
// [4991] make sure published only updates if user has the permission.
|
||||||
if (isset($values['published']) && !$this->canDo->get('help_document.edit.state'))
|
if (isset($values['published']) && !$this->canDo->get('help_document.edit.state'))
|
||||||
{
|
{
|
||||||
unset($values['published']);
|
unset($values['published']);
|
||||||
}
|
}
|
||||||
// [4769] remove move_copy from array
|
// [5004] remove move_copy from array
|
||||||
unset($values['move_copy']);
|
unset($values['move_copy']);
|
||||||
|
|
||||||
// [4790] Parent exists so we proceed
|
// [5025] Parent exists so we proceed
|
||||||
foreach ($pks as $pk)
|
foreach ($pks as $pk)
|
||||||
{
|
{
|
||||||
if (!$this->user->authorise('help_document.edit', $contexts[$pk]))
|
if (!$this->user->authorise('help_document.edit', $contexts[$pk]))
|
||||||
@ -672,30 +696,30 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4807] Check that the row actually exists
|
// [5042] Check that the row actually exists
|
||||||
if (!$this->table->load($pk))
|
if (!$this->table->load($pk))
|
||||||
{
|
{
|
||||||
if ($error = $this->table->getError())
|
if ($error = $this->table->getError())
|
||||||
{
|
{
|
||||||
// [4812] Fatal error
|
// [5047] Fatal error
|
||||||
$this->setError($error);
|
$this->setError($error);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// [4819] Not fatal error
|
// [5054] Not fatal error
|
||||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4825] insert all set values.
|
// [5060] insert all set values.
|
||||||
if (SermondistributorHelper::checkArray($values))
|
if (SermondistributorHelper::checkArray($values))
|
||||||
{
|
{
|
||||||
foreach ($values as $key => $value)
|
foreach ($values as $key => $value)
|
||||||
{
|
{
|
||||||
// [4830] Do special action for access.
|
// [5065] Do special action for access.
|
||||||
if ('access' == $key && strlen($value) > 0)
|
if ('access' == $key && strlen($value) > 0)
|
||||||
{
|
{
|
||||||
$this->table->$key = $value;
|
$this->table->$key = $value;
|
||||||
@ -708,7 +732,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// [4842] Check the row.
|
// [5077] Check the row.
|
||||||
if (!$this->table->check())
|
if (!$this->table->check())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -721,7 +745,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4855] Store the row.
|
// [5090] Store the row.
|
||||||
if (!$this->table->store())
|
if (!$this->table->store())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -730,7 +754,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4864] Clean the cache
|
// [5099] Clean the cache
|
||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -760,7 +784,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4106] Set the groups string to JSON string.
|
// [4321] Set the groups string to JSON string.
|
||||||
if (isset($data['groups']))
|
if (isset($data['groups']))
|
||||||
{
|
{
|
||||||
$data['groups'] = (string) json_encode($data['groups']);
|
$data['groups'] = (string) json_encode($data['groups']);
|
||||||
@ -774,7 +798,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
$data['params'] = (string) $params;
|
$data['params'] = (string) $params;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5146] Alter the title for save as copy
|
// [5381] Alter the title for save as copy
|
||||||
if ($input->get('task') == 'save2copy')
|
if ($input->get('task') == 'save2copy')
|
||||||
{
|
{
|
||||||
$origTable = clone $this->getTable();
|
$origTable = clone $this->getTable();
|
||||||
@ -797,7 +821,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
$data['published'] = 0;
|
$data['published'] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5173] Automatic handling of alias for empty fields
|
// [5408] Automatic handling of alias for empty fields
|
||||||
if (in_array($input->get('task'), array('apply', 'save', 'save2new')) && (int) $input->get('id') == 0)
|
if (in_array($input->get('task'), array('apply', 'save', 'save2new')) && (int) $input->get('id') == 0)
|
||||||
{
|
{
|
||||||
if ($data['alias'] == null)
|
if ($data['alias'] == null)
|
||||||
@ -828,10 +852,10 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5212] Alter the uniqe field for save as copy
|
// [5447] Alter the uniqe field for save as copy
|
||||||
if ($input->get('task') == 'save2copy')
|
if ($input->get('task') == 'save2copy')
|
||||||
{
|
{
|
||||||
// [5215] Automatic handling of other uniqe fields
|
// [5450] Automatic handling of other uniqe fields
|
||||||
$uniqeFields = $this->getUniqeFields();
|
$uniqeFields = $this->getUniqeFields();
|
||||||
if (SermondistributorHelper::checkArray($uniqeFields))
|
if (SermondistributorHelper::checkArray($uniqeFields))
|
||||||
{
|
{
|
||||||
@ -885,7 +909,7 @@ class SermondistributorModelHelp_document extends JModelAdmin
|
|||||||
protected function _generateNewTitle($alias, $title)
|
protected function _generateNewTitle($alias, $title)
|
||||||
{
|
{
|
||||||
|
|
||||||
// [5246] Alter the title & alias
|
// [5481] Alter the title & alias
|
||||||
$table = $this->getTable();
|
$table = $this->getTable();
|
||||||
|
|
||||||
while ($table->load(array('alias' => $alias)))
|
while ($table->load(array('alias' => $alias)))
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage help_documents.php
|
@subpackage help_documents.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -108,16 +113,16 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// [10536] check in items
|
// [10780] check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
// load parent items
|
// load parent items
|
||||||
$items = parent::getItems();
|
$items = parent::getItems();
|
||||||
|
|
||||||
// [10611] set values to display correctly.
|
// [10855] set values to display correctly.
|
||||||
if (SermondistributorHelper::checkArray($items))
|
if (SermondistributorHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// [10614] get user object.
|
// [10858] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
@ -128,7 +133,7 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [10682] decode groups
|
// [10926] decode groups
|
||||||
$groupsArray = json_decode($item->groups, true);
|
$groupsArray = json_decode($item->groups, true);
|
||||||
if (SermondistributorHelper::checkArray($groupsArray))
|
if (SermondistributorHelper::checkArray($groupsArray))
|
||||||
{
|
{
|
||||||
@ -151,14 +156,14 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [10877] set selection value to a translatable value
|
// [11121] set selection value to a translatable value
|
||||||
if (SermondistributorHelper::checkArray($items))
|
if (SermondistributorHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
// [10884] convert type
|
// [11128] convert type
|
||||||
$item->type = $this->selectionTranslation($item->type, 'type');
|
$item->type = $this->selectionTranslation($item->type, 'type');
|
||||||
// [10884] convert location
|
// [11128] convert location
|
||||||
$item->location = $this->selectionTranslation($item->location, 'location');
|
$item->location = $this->selectionTranslation($item->location, 'location');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -175,7 +180,7 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function selectionTranslation($value,$name)
|
public function selectionTranslation($value,$name)
|
||||||
{
|
{
|
||||||
// [10910] Array of type language strings
|
// [11154] Array of type language strings
|
||||||
if ($name == 'type')
|
if ($name == 'type')
|
||||||
{
|
{
|
||||||
$typeArray = array(
|
$typeArray = array(
|
||||||
@ -184,20 +189,20 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||||||
2 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TEXT',
|
2 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_TEXT',
|
||||||
3 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL'
|
3 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_URL'
|
||||||
);
|
);
|
||||||
// [10941] Now check if value is found in this array
|
// [11185] Now check if value is found in this array
|
||||||
if (isset($typeArray[$value]) && SermondistributorHelper::checkString($typeArray[$value]))
|
if (isset($typeArray[$value]) && SermondistributorHelper::checkString($typeArray[$value]))
|
||||||
{
|
{
|
||||||
return $typeArray[$value];
|
return $typeArray[$value];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [10910] Array of location language strings
|
// [11154] Array of location language strings
|
||||||
if ($name == 'location')
|
if ($name == 'location')
|
||||||
{
|
{
|
||||||
$locationArray = array(
|
$locationArray = array(
|
||||||
1 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN',
|
1 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_ADMIN',
|
||||||
2 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE'
|
2 => 'COM_SERMONDISTRIBUTOR_HELP_DOCUMENT_SITE'
|
||||||
);
|
);
|
||||||
// [10941] Now check if value is found in this array
|
// [11185] Now check if value is found in this array
|
||||||
if (isset($locationArray[$value]) && SermondistributorHelper::checkString($locationArray[$value]))
|
if (isset($locationArray[$value]) && SermondistributorHelper::checkString($locationArray[$value]))
|
||||||
{
|
{
|
||||||
return $locationArray[$value];
|
return $locationArray[$value];
|
||||||
@ -213,19 +218,19 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||||||
*/
|
*/
|
||||||
protected function getListQuery()
|
protected function getListQuery()
|
||||||
{
|
{
|
||||||
// [7397] Get the user object.
|
// [7637] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [7399] Create a new query object.
|
// [7639] Create a new query object.
|
||||||
$db = JFactory::getDBO();
|
$db = JFactory::getDBO();
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [7402] Select some fields
|
// [7642] Select some fields
|
||||||
$query->select('a.*');
|
$query->select('a.*');
|
||||||
|
|
||||||
// [7409] From the sermondistributor_item table
|
// [7649] From the sermondistributor_item table
|
||||||
$query->from($db->quoteName('#__sermondistributor_help_document', 'a'));
|
$query->from($db->quoteName('#__sermondistributor_help_document', 'a'));
|
||||||
|
|
||||||
// [7423] Filter by published state
|
// [7663] Filter by published state
|
||||||
$published = $this->getState('filter.published');
|
$published = $this->getState('filter.published');
|
||||||
if (is_numeric($published))
|
if (is_numeric($published))
|
||||||
{
|
{
|
||||||
@ -236,21 +241,21 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||||||
$query->where('(a.published = 0 OR a.published = 1)');
|
$query->where('(a.published = 0 OR a.published = 1)');
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7435] Join over the asset groups.
|
// [7675] Join over the asset groups.
|
||||||
$query->select('ag.title AS access_level');
|
$query->select('ag.title AS access_level');
|
||||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||||
// [7438] Filter by access level.
|
// [7678] Filter by access level.
|
||||||
if ($access = $this->getState('filter.access'))
|
if ($access = $this->getState('filter.access'))
|
||||||
{
|
{
|
||||||
$query->where('a.access = ' . (int) $access);
|
$query->where('a.access = ' . (int) $access);
|
||||||
}
|
}
|
||||||
// [7443] Implement View Level Access
|
// [7683] Implement View Level Access
|
||||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||||
$query->where('a.access IN (' . $groups . ')');
|
$query->where('a.access IN (' . $groups . ')');
|
||||||
}
|
}
|
||||||
// [7520] Filter by search.
|
// [7760] Filter by search.
|
||||||
$search = $this->getState('filter.search');
|
$search = $this->getState('filter.search');
|
||||||
if (!empty($search))
|
if (!empty($search))
|
||||||
{
|
{
|
||||||
@ -265,28 +270,28 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7763] Filter by Type.
|
// [8003] Filter by Type.
|
||||||
if ($type = $this->getState('filter.type'))
|
if ($type = $this->getState('filter.type'))
|
||||||
{
|
{
|
||||||
$query->where('a.type = ' . $db->quote($db->escape($type, true)));
|
$query->where('a.type = ' . $db->quote($db->escape($type, true)));
|
||||||
}
|
}
|
||||||
// [7763] Filter by Location.
|
// [8003] Filter by Location.
|
||||||
if ($location = $this->getState('filter.location'))
|
if ($location = $this->getState('filter.location'))
|
||||||
{
|
{
|
||||||
$query->where('a.location = ' . $db->quote($db->escape($location, true)));
|
$query->where('a.location = ' . $db->quote($db->escape($location, true)));
|
||||||
}
|
}
|
||||||
// [7763] Filter by Admin_view.
|
// [8003] Filter by Admin_view.
|
||||||
if ($admin_view = $this->getState('filter.admin_view'))
|
if ($admin_view = $this->getState('filter.admin_view'))
|
||||||
{
|
{
|
||||||
$query->where('a.admin_view = ' . $db->quote($db->escape($admin_view, true)));
|
$query->where('a.admin_view = ' . $db->quote($db->escape($admin_view, true)));
|
||||||
}
|
}
|
||||||
// [7763] Filter by Site_view.
|
// [8003] Filter by Site_view.
|
||||||
if ($site_view = $this->getState('filter.site_view'))
|
if ($site_view = $this->getState('filter.site_view'))
|
||||||
{
|
{
|
||||||
$query->where('a.site_view = ' . $db->quote($db->escape($site_view, true)));
|
$query->where('a.site_view = ' . $db->quote($db->escape($site_view, true)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7479] Add the list ordering clause.
|
// [7719] Add the list ordering clause.
|
||||||
$orderCol = $this->state->get('list.ordering', 'a.id');
|
$orderCol = $this->state->get('list.ordering', 'a.id');
|
||||||
$orderDirn = $this->state->get('list.direction', 'asc');
|
$orderDirn = $this->state->get('list.direction', 'asc');
|
||||||
if ($orderCol != '')
|
if ($orderCol != '')
|
||||||
@ -304,42 +309,42 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function getExportData($pks)
|
public function getExportData($pks)
|
||||||
{
|
{
|
||||||
// [7187] setup the query
|
// [7427] setup the query
|
||||||
if (SermondistributorHelper::checkArray($pks))
|
if (SermondistributorHelper::checkArray($pks))
|
||||||
{
|
{
|
||||||
// [7190] Get the user object.
|
// [7430] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [7192] Create a new query object.
|
// [7432] Create a new query object.
|
||||||
$db = JFactory::getDBO();
|
$db = JFactory::getDBO();
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [7195] Select some fields
|
// [7435] Select some fields
|
||||||
$query->select('a.*');
|
$query->select('a.*');
|
||||||
|
|
||||||
// [7197] From the sermondistributor_help_document table
|
// [7437] From the sermondistributor_help_document table
|
||||||
$query->from($db->quoteName('#__sermondistributor_help_document', 'a'));
|
$query->from($db->quoteName('#__sermondistributor_help_document', 'a'));
|
||||||
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
||||||
// [7207] Implement View Level Access
|
// [7447] Implement View Level Access
|
||||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||||
$query->where('a.access IN (' . $groups . ')');
|
$query->where('a.access IN (' . $groups . ')');
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7214] Order the results by ordering
|
// [7454] Order the results by ordering
|
||||||
$query->order('a.ordering ASC');
|
$query->order('a.ordering ASC');
|
||||||
|
|
||||||
// [7216] Load the items
|
// [7456] Load the items
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
$db->execute();
|
$db->execute();
|
||||||
if ($db->getNumRows())
|
if ($db->getNumRows())
|
||||||
{
|
{
|
||||||
$items = $db->loadObjectList();
|
$items = $db->loadObjectList();
|
||||||
|
|
||||||
// [10611] set values to display correctly.
|
// [10855] set values to display correctly.
|
||||||
if (SermondistributorHelper::checkArray($items))
|
if (SermondistributorHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// [10614] get user object.
|
// [10858] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
@ -350,13 +355,13 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [10824] unset the values we don't want exported.
|
// [11068] unset the values we don't want exported.
|
||||||
unset($item->asset_id);
|
unset($item->asset_id);
|
||||||
unset($item->checked_out);
|
unset($item->checked_out);
|
||||||
unset($item->checked_out_time);
|
unset($item->checked_out_time);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [10833] Add headers to items array.
|
// [11077] Add headers to items array.
|
||||||
$headers = $this->getExImPortHeaders();
|
$headers = $this->getExImPortHeaders();
|
||||||
if (SermondistributorHelper::checkObject($headers))
|
if (SermondistributorHelper::checkObject($headers))
|
||||||
{
|
{
|
||||||
@ -375,13 +380,13 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function getExImPortHeaders()
|
public function getExImPortHeaders()
|
||||||
{
|
{
|
||||||
// [7236] Get a db connection.
|
// [7476] Get a db connection.
|
||||||
$db = JFactory::getDbo();
|
$db = JFactory::getDbo();
|
||||||
// [7238] get the columns
|
// [7478] get the columns
|
||||||
$columns = $db->getTableColumns("#__sermondistributor_help_document");
|
$columns = $db->getTableColumns("#__sermondistributor_help_document");
|
||||||
if (SermondistributorHelper::checkArray($columns))
|
if (SermondistributorHelper::checkArray($columns))
|
||||||
{
|
{
|
||||||
// [7242] remove the headers you don't import/export.
|
// [7482] remove the headers you don't import/export.
|
||||||
unset($columns['asset_id']);
|
unset($columns['asset_id']);
|
||||||
unset($columns['checked_out']);
|
unset($columns['checked_out']);
|
||||||
unset($columns['checked_out_time']);
|
unset($columns['checked_out_time']);
|
||||||
@ -403,7 +408,7 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||||||
*/
|
*/
|
||||||
protected function getStoreId($id = '')
|
protected function getStoreId($id = '')
|
||||||
{
|
{
|
||||||
// [10159] Compile the store id.
|
// [10403] Compile the store id.
|
||||||
$id .= ':' . $this->getState('filter.id');
|
$id .= ':' . $this->getState('filter.id');
|
||||||
$id .= ':' . $this->getState('filter.search');
|
$id .= ':' . $this->getState('filter.search');
|
||||||
$id .= ':' . $this->getState('filter.published');
|
$id .= ':' . $this->getState('filter.published');
|
||||||
@ -427,15 +432,15 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||||||
*/
|
*/
|
||||||
protected function checkInNow()
|
protected function checkInNow()
|
||||||
{
|
{
|
||||||
// [10552] Get set check in time
|
// [10796] Get set check in time
|
||||||
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
|
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
|
||||||
|
|
||||||
if ($time)
|
if ($time)
|
||||||
{
|
{
|
||||||
|
|
||||||
// [10557] Get a db connection.
|
// [10801] Get a db connection.
|
||||||
$db = JFactory::getDbo();
|
$db = JFactory::getDbo();
|
||||||
// [10559] reset query
|
// [10803] reset query
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
$query->select('*');
|
$query->select('*');
|
||||||
$query->from($db->quoteName('#__sermondistributor_help_document'));
|
$query->from($db->quoteName('#__sermondistributor_help_document'));
|
||||||
@ -443,24 +448,24 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||||||
$db->execute();
|
$db->execute();
|
||||||
if ($db->getNumRows())
|
if ($db->getNumRows())
|
||||||
{
|
{
|
||||||
// [10567] Get Yesterdays date
|
// [10811] Get Yesterdays date
|
||||||
$date = JFactory::getDate()->modify($time)->toSql();
|
$date = JFactory::getDate()->modify($time)->toSql();
|
||||||
// [10569] reset query
|
// [10813] reset query
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [10571] Fields to update.
|
// [10815] Fields to update.
|
||||||
$fields = array(
|
$fields = array(
|
||||||
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
||||||
$db->quoteName('checked_out') . '=0'
|
$db->quoteName('checked_out') . '=0'
|
||||||
);
|
);
|
||||||
|
|
||||||
// [10576] Conditions for which records should be updated.
|
// [10820] Conditions for which records should be updated.
|
||||||
$conditions = array(
|
$conditions = array(
|
||||||
$db->quoteName('checked_out') . '!=0',
|
$db->quoteName('checked_out') . '!=0',
|
||||||
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
||||||
);
|
);
|
||||||
|
|
||||||
// [10581] Check table
|
// [10825] Check table
|
||||||
$query->update($db->quoteName('#__sermondistributor_help_document'))->set($fields)->where($conditions);
|
$query->update($db->quoteName('#__sermondistributor_help_document'))->set($fields)->where($conditions);
|
||||||
|
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage import.php
|
@subpackage import.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage preacher.php
|
@subpackage preacher.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -96,7 +101,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
$item->tags->getTagIds($item->id, 'com_sermondistributor.preacher');
|
$item->tags->getTagIds($item->id, 'com_sermondistributor.preacher');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->preacherjhqc = $item->id;
|
$this->preachermfux = $item->id;
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
@ -106,74 +111,74 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getJuisermons()
|
public function getJfzsermons()
|
||||||
{
|
{
|
||||||
// [6945] Get the user object.
|
// [7185] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [6947] Create a new query object.
|
// [7187] Create a new query object.
|
||||||
$db = JFactory::getDBO();
|
$db = JFactory::getDBO();
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [6950] Select some fields
|
// [7190] Select some fields
|
||||||
$query->select('a.*');
|
$query->select('a.*');
|
||||||
$query->select($db->quoteName('c.title','category_title'));
|
$query->select($db->quoteName('c.title','category_title'));
|
||||||
|
|
||||||
// [6957] From the sermondistributor_sermon table
|
// [7197] From the sermondistributor_sermon table
|
||||||
$query->from($db->quoteName('#__sermondistributor_sermon', 'a'));
|
$query->from($db->quoteName('#__sermondistributor_sermon', 'a'));
|
||||||
$query->join('LEFT', $db->quoteName('#__categories', 'c') . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('c.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__categories', 'c') . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('c.id') . ')');
|
||||||
|
|
||||||
// [7550] From the sermondistributor_preacher table.
|
// [7790] From the sermondistributor_preacher table.
|
||||||
$query->select($db->quoteName('g.name','preacher_name'));
|
$query->select($db->quoteName('g.name','preacher_name'));
|
||||||
$query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'g') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('g.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'g') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('g.id') . ')');
|
||||||
|
|
||||||
// [7550] From the sermondistributor_series table.
|
// [7790] From the sermondistributor_series table.
|
||||||
$query->select($db->quoteName('h.name','series_name'));
|
$query->select($db->quoteName('h.name','series_name'));
|
||||||
$query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'h') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('h.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'h') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('h.id') . ')');
|
||||||
|
|
||||||
// [6973] Filter by preacherjhqc global.
|
// [7213] Filter by preachermfux global.
|
||||||
$preacherjhqc = $this->preacherjhqc;
|
$preachermfux = $this->preachermfux;
|
||||||
if (is_numeric($preacherjhqc ))
|
if (is_numeric($preachermfux ))
|
||||||
{
|
{
|
||||||
$query->where('a.preacher = ' . (int) $preacherjhqc );
|
$query->where('a.preacher = ' . (int) $preachermfux );
|
||||||
}
|
}
|
||||||
elseif (is_string($preacherjhqc))
|
elseif (is_string($preachermfux))
|
||||||
{
|
{
|
||||||
$query->where('a.preacher = ' . $db->quote($preacherjhqc));
|
$query->where('a.preacher = ' . $db->quote($preachermfux));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$query->where('a.preacher = -5');
|
$query->where('a.preacher = -5');
|
||||||
}
|
}
|
||||||
|
|
||||||
// [6990] Join over the asset groups.
|
// [7230] Join over the asset groups.
|
||||||
$query->select('ag.title AS access_level');
|
$query->select('ag.title AS access_level');
|
||||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||||
// [6993] Filter by access level.
|
// [7233] Filter by access level.
|
||||||
if ($access = $this->getState('filter.access'))
|
if ($access = $this->getState('filter.access'))
|
||||||
{
|
{
|
||||||
$query->where('a.access = ' . (int) $access);
|
$query->where('a.access = ' . (int) $access);
|
||||||
}
|
}
|
||||||
// [6998] Implement View Level Access
|
// [7238] Implement View Level Access
|
||||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||||
$query->where('a.access IN (' . $groups . ')');
|
$query->where('a.access IN (' . $groups . ')');
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7005] Order the results by ordering
|
// [7245] Order the results by ordering
|
||||||
$query->order('a.ordering ASC');
|
$query->order('a.ordering ASC');
|
||||||
|
|
||||||
// [7007] Load the items
|
// [7247] Load the items
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
$db->execute();
|
$db->execute();
|
||||||
if ($db->getNumRows())
|
if ($db->getNumRows())
|
||||||
{
|
{
|
||||||
$items = $db->loadObjectList();
|
$items = $db->loadObjectList();
|
||||||
|
|
||||||
// [10611] set values to display correctly.
|
// [10855] set values to display correctly.
|
||||||
if (SermondistributorHelper::checkArray($items))
|
if (SermondistributorHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// [10614] get user object.
|
// [10858] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
@ -187,15 +192,15 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [10877] set selection value to a translatable value
|
// [11121] set selection value to a translatable value
|
||||||
if (SermondistributorHelper::checkArray($items))
|
if (SermondistributorHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
// [10884] convert link_type
|
// [11128] convert link_type
|
||||||
$item->link_type = $this->selectionTranslationJuisermons($item->link_type, 'link_type');
|
$item->link_type = $this->selectionTranslationJfzsermons($item->link_type, 'link_type');
|
||||||
// [10884] convert source
|
// [11128] convert source
|
||||||
$item->source = $this->selectionTranslationJuisermons($item->source, 'source');
|
$item->source = $this->selectionTranslationJfzsermons($item->source, 'source');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -209,22 +214,22 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return translatable string
|
* @return translatable string
|
||||||
*/
|
*/
|
||||||
public function selectionTranslationJuisermons($value,$name)
|
public function selectionTranslationJfzsermons($value,$name)
|
||||||
{
|
{
|
||||||
// [10910] Array of link_type language strings
|
// [11154] Array of link_type language strings
|
||||||
if ($name == 'link_type')
|
if ($name == 'link_type')
|
||||||
{
|
{
|
||||||
$link_typeArray = array(
|
$link_typeArray = array(
|
||||||
1 => 'COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED',
|
1 => 'COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED',
|
||||||
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DIRECT'
|
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DIRECT'
|
||||||
);
|
);
|
||||||
// [10941] Now check if value is found in this array
|
// [11185] Now check if value is found in this array
|
||||||
if (isset($link_typeArray[$value]) && SermondistributorHelper::checkString($link_typeArray[$value]))
|
if (isset($link_typeArray[$value]) && SermondistributorHelper::checkString($link_typeArray[$value]))
|
||||||
{
|
{
|
||||||
return $link_typeArray[$value];
|
return $link_typeArray[$value];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [10910] Array of source language strings
|
// [11154] Array of source language strings
|
||||||
if ($name == 'source')
|
if ($name == 'source')
|
||||||
{
|
{
|
||||||
$sourceArray = array(
|
$sourceArray = array(
|
||||||
@ -233,7 +238,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DROPBOX',
|
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DROPBOX',
|
||||||
3 => 'COM_SERMONDISTRIBUTOR_SERMON_URL'
|
3 => 'COM_SERMONDISTRIBUTOR_SERMON_URL'
|
||||||
);
|
);
|
||||||
// [10941] Now check if value is found in this array
|
// [11185] Now check if value is found in this array
|
||||||
if (isset($sourceArray[$value]) && SermondistributorHelper::checkString($sourceArray[$value]))
|
if (isset($sourceArray[$value]) && SermondistributorHelper::checkString($sourceArray[$value]))
|
||||||
{
|
{
|
||||||
return $sourceArray[$value];
|
return $sourceArray[$value];
|
||||||
@ -253,7 +258,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function getForm($data = array(), $loadData = true)
|
public function getForm($data = array(), $loadData = true)
|
||||||
{ // [9566] Get the form.
|
{ // [9806] Get the form.
|
||||||
$form = $this->loadForm('com_sermondistributor.preacher', 'preacher', array('control' => 'jform', 'load_data' => $loadData));
|
$form = $this->loadForm('com_sermondistributor.preacher', 'preacher', array('control' => 'jform', 'load_data' => $loadData));
|
||||||
|
|
||||||
if (empty($form))
|
if (empty($form))
|
||||||
@ -263,12 +268,12 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
|
|
||||||
$jinput = JFactory::getApplication()->input;
|
$jinput = JFactory::getApplication()->input;
|
||||||
|
|
||||||
// [9651] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
|
// [9891] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
|
||||||
if ($jinput->get('a_id'))
|
if ($jinput->get('a_id'))
|
||||||
{
|
{
|
||||||
$id = $jinput->get('a_id', 0, 'INT');
|
$id = $jinput->get('a_id', 0, 'INT');
|
||||||
}
|
}
|
||||||
// [9656] The back end uses id so we use that the rest of the time and set it to 0 by default.
|
// [9896] The back end uses id so we use that the rest of the time and set it to 0 by default.
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$id = $jinput->get('id', 0, 'INT');
|
$id = $jinput->get('id', 0, 'INT');
|
||||||
@ -276,36 +281,36 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
|
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
// [9662] Check for existing item.
|
// [9902] Check for existing item.
|
||||||
// [9663] Modify the form based on Edit State access controls.
|
// [9903] Modify the form based on Edit State access controls.
|
||||||
if ($id != 0 && (!$user->authorise('preacher.edit.state', 'com_sermondistributor.preacher.' . (int) $id))
|
if ($id != 0 && (!$user->authorise('preacher.edit.state', 'com_sermondistributor.preacher.' . (int) $id))
|
||||||
|| ($id == 0 && !$user->authorise('preacher.edit.state', 'com_sermondistributor')))
|
|| ($id == 0 && !$user->authorise('preacher.edit.state', 'com_sermondistributor')))
|
||||||
{
|
{
|
||||||
// [9676] Disable fields for display.
|
// [9916] Disable fields for display.
|
||||||
$form->setFieldAttribute('ordering', 'disabled', 'true');
|
$form->setFieldAttribute('ordering', 'disabled', 'true');
|
||||||
$form->setFieldAttribute('published', 'disabled', 'true');
|
$form->setFieldAttribute('published', 'disabled', 'true');
|
||||||
// [9679] Disable fields while saving.
|
// [9919] Disable fields while saving.
|
||||||
$form->setFieldAttribute('ordering', 'filter', 'unset');
|
$form->setFieldAttribute('ordering', 'filter', 'unset');
|
||||||
$form->setFieldAttribute('published', 'filter', 'unset');
|
$form->setFieldAttribute('published', 'filter', 'unset');
|
||||||
}
|
}
|
||||||
// [9684] Modify the form based on Edit Creaded By access controls.
|
// [9924] Modify the form based on Edit Creaded By access controls.
|
||||||
if ($id != 0 && (!$user->authorise('preacher.edit.created_by', 'com_sermondistributor.preacher.' . (int) $id))
|
if ($id != 0 && (!$user->authorise('preacher.edit.created_by', 'com_sermondistributor.preacher.' . (int) $id))
|
||||||
|| ($id == 0 && !$user->authorise('preacher.edit.created_by', 'com_sermondistributor')))
|
|| ($id == 0 && !$user->authorise('preacher.edit.created_by', 'com_sermondistributor')))
|
||||||
{
|
{
|
||||||
// [9696] Disable fields for display.
|
// [9936] Disable fields for display.
|
||||||
$form->setFieldAttribute('created_by', 'disabled', 'true');
|
$form->setFieldAttribute('created_by', 'disabled', 'true');
|
||||||
// [9698] Disable fields for display.
|
// [9938] Disable fields for display.
|
||||||
$form->setFieldAttribute('created_by', 'readonly', 'true');
|
$form->setFieldAttribute('created_by', 'readonly', 'true');
|
||||||
// [9700] Disable fields while saving.
|
// [9940] Disable fields while saving.
|
||||||
$form->setFieldAttribute('created_by', 'filter', 'unset');
|
$form->setFieldAttribute('created_by', 'filter', 'unset');
|
||||||
}
|
}
|
||||||
// [9703] Modify the form based on Edit Creaded Date access controls.
|
// [9943] Modify the form based on Edit Creaded Date access controls.
|
||||||
if ($id != 0 && (!$user->authorise('preacher.edit.created', 'com_sermondistributor.preacher.' . (int) $id))
|
if ($id != 0 && (!$user->authorise('preacher.edit.created', 'com_sermondistributor.preacher.' . (int) $id))
|
||||||
|| ($id == 0 && !$user->authorise('preacher.edit.created', 'com_sermondistributor')))
|
|| ($id == 0 && !$user->authorise('preacher.edit.created', 'com_sermondistributor')))
|
||||||
{
|
{
|
||||||
// [9715] Disable fields for display.
|
// [9955] Disable fields for display.
|
||||||
$form->setFieldAttribute('created', 'disabled', 'true');
|
$form->setFieldAttribute('created', 'disabled', 'true');
|
||||||
// [9717] Disable fields while saving.
|
// [9957] Disable fields while saving.
|
||||||
$form->setFieldAttribute('created', 'filter', 'unset');
|
$form->setFieldAttribute('created', 'filter', 'unset');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -341,7 +346,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [9867] The record has been set. Check the record permissions.
|
// [10107] The record has been set. Check the record permissions.
|
||||||
return $user->authorise('preacher.delete', 'com_sermondistributor.preacher.' . (int) $record->id);
|
return $user->authorise('preacher.delete', 'com_sermondistributor.preacher.' . (int) $record->id);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -363,14 +368,14 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
|
|
||||||
if ($recordId)
|
if ($recordId)
|
||||||
{
|
{
|
||||||
// [9954] The record has been set. Check the record permissions.
|
// [10194] The record has been set. Check the record permissions.
|
||||||
$permission = $user->authorise('preacher.edit.state', 'com_sermondistributor.preacher.' . (int) $recordId);
|
$permission = $user->authorise('preacher.edit.state', 'com_sermondistributor.preacher.' . (int) $recordId);
|
||||||
if (!$permission && !is_null($permission))
|
if (!$permission && !is_null($permission))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [9971] In the absense of better information, revert to the component permissions.
|
// [10211] In the absense of better information, revert to the component permissions.
|
||||||
return $user->authorise('preacher.edit.state', 'com_sermondistributor');
|
return $user->authorise('preacher.edit.state', 'com_sermondistributor');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -385,7 +390,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
*/
|
*/
|
||||||
protected function allowEdit($data = array(), $key = 'id')
|
protected function allowEdit($data = array(), $key = 'id')
|
||||||
{
|
{
|
||||||
// [9779] Check specific edit permission then general edit permission.
|
// [10019] Check specific edit permission then general edit permission.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
return $user->authorise('preacher.edit', 'com_sermondistributor.preacher.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('preacher.edit', 'com_sermondistributor');
|
return $user->authorise('preacher.edit', 'com_sermondistributor.preacher.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('preacher.edit', 'com_sermondistributor');
|
||||||
@ -481,6 +486,25 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to delete one or more records.
|
||||||
|
*
|
||||||
|
* @param array &$pks An array of record primary keys.
|
||||||
|
*
|
||||||
|
* @return boolean True if successful, false if an error occurs.
|
||||||
|
*
|
||||||
|
* @since 12.2
|
||||||
|
*/
|
||||||
|
public function delete(&$pks)
|
||||||
|
{
|
||||||
|
if (!parent::delete($pks))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to perform batch operations on an item or a set of items.
|
* Method to perform batch operations on an item or a set of items.
|
||||||
*
|
*
|
||||||
@ -592,7 +616,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
{
|
{
|
||||||
if (empty($this->batchSet))
|
if (empty($this->batchSet))
|
||||||
{
|
{
|
||||||
// [4932] Set some needed variables.
|
// [5167] Set some needed variables.
|
||||||
$this->user = JFactory::getUser();
|
$this->user = JFactory::getUser();
|
||||||
$this->table = $this->getTable();
|
$this->table = $this->getTable();
|
||||||
$this->tableClassName = get_class($this->table);
|
$this->tableClassName = get_class($this->table);
|
||||||
@ -606,12 +630,12 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4952] get list of uniqe fields
|
// [5187] get list of uniqe fields
|
||||||
$uniqeFields = $this->getUniqeFields();
|
$uniqeFields = $this->getUniqeFields();
|
||||||
// [4954] remove move_copy from array
|
// [5189] remove move_copy from array
|
||||||
unset($values['move_copy']);
|
unset($values['move_copy']);
|
||||||
|
|
||||||
// [4957] make sure published is set
|
// [5192] make sure published is set
|
||||||
if (!isset($values['published']))
|
if (!isset($values['published']))
|
||||||
{
|
{
|
||||||
$values['published'] = 0;
|
$values['published'] = 0;
|
||||||
@ -623,21 +647,21 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
|
|
||||||
$newIds = array();
|
$newIds = array();
|
||||||
|
|
||||||
// [4994] Parent exists so let's proceed
|
// [5229] Parent exists so let's proceed
|
||||||
while (!empty($pks))
|
while (!empty($pks))
|
||||||
{
|
{
|
||||||
// [4997] Pop the first ID off the stack
|
// [5232] Pop the first ID off the stack
|
||||||
$pk = array_shift($pks);
|
$pk = array_shift($pks);
|
||||||
|
|
||||||
$this->table->reset();
|
$this->table->reset();
|
||||||
|
|
||||||
// [5002] only allow copy if user may edit this item.
|
// [5237] only allow copy if user may edit this item.
|
||||||
|
|
||||||
if (!$this->user->authorise('preacher.edit', $contexts[$pk]))
|
if (!$this->user->authorise('preacher.edit', $contexts[$pk]))
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
// [5012] Not fatal error
|
// [5247] Not fatal error
|
||||||
|
|
||||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||||
|
|
||||||
@ -645,19 +669,19 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5017] Check that the row actually exists
|
// [5252] Check that the row actually exists
|
||||||
if (!$this->table->load($pk))
|
if (!$this->table->load($pk))
|
||||||
{
|
{
|
||||||
if ($error = $this->table->getError())
|
if ($error = $this->table->getError())
|
||||||
{
|
{
|
||||||
// [5022] Fatal error
|
// [5257] Fatal error
|
||||||
$this->setError($error);
|
$this->setError($error);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// [5029] Not fatal error
|
// [5264] Not fatal error
|
||||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -665,7 +689,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
|
|
||||||
list($this->table->name, $this->table->alias) = $this->_generateNewTitle($this->table->alias, $this->table->name);
|
list($this->table->name, $this->table->alias) = $this->_generateNewTitle($this->table->alias, $this->table->name);
|
||||||
|
|
||||||
// [5065] insert all set values
|
// [5300] insert all set values
|
||||||
if (SermondistributorHelper::checkArray($values))
|
if (SermondistributorHelper::checkArray($values))
|
||||||
{
|
{
|
||||||
foreach ($values as $key => $value)
|
foreach ($values as $key => $value)
|
||||||
@ -677,7 +701,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5077] update all uniqe fields
|
// [5312] update all uniqe fields
|
||||||
if (SermondistributorHelper::checkArray($uniqeFields))
|
if (SermondistributorHelper::checkArray($uniqeFields))
|
||||||
{
|
{
|
||||||
foreach ($uniqeFields as $uniqeField)
|
foreach ($uniqeFields as $uniqeField)
|
||||||
@ -686,13 +710,13 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5086] Reset the ID because we are making a copy
|
// [5321] Reset the ID because we are making a copy
|
||||||
$this->table->id = 0;
|
$this->table->id = 0;
|
||||||
|
|
||||||
// [5089] TODO: Deal with ordering?
|
// [5324] TODO: Deal with ordering?
|
||||||
// [5090] $this->table->ordering = 1;
|
// [5325] $this->table->ordering = 1;
|
||||||
|
|
||||||
// [5092] Check the row.
|
// [5327] Check the row.
|
||||||
if (!$this->table->check())
|
if (!$this->table->check())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -705,7 +729,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5105] Store the row.
|
// [5340] Store the row.
|
||||||
if (!$this->table->store())
|
if (!$this->table->store())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -713,14 +737,14 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5113] Get the new item ID
|
// [5348] Get the new item ID
|
||||||
$newId = $this->table->get('id');
|
$newId = $this->table->get('id');
|
||||||
|
|
||||||
// [5116] Add the new ID to the array
|
// [5351] Add the new ID to the array
|
||||||
$newIds[$pk] = $newId;
|
$newIds[$pk] = $newId;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5120] Clean the cache
|
// [5355] Clean the cache
|
||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
@ -741,7 +765,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
{
|
{
|
||||||
if (empty($this->batchSet))
|
if (empty($this->batchSet))
|
||||||
{
|
{
|
||||||
// [4734] Set some needed variables.
|
// [4969] Set some needed variables.
|
||||||
$this->user = JFactory::getUser();
|
$this->user = JFactory::getUser();
|
||||||
$this->table = $this->getTable();
|
$this->table = $this->getTable();
|
||||||
$this->tableClassName = get_class($this->table);
|
$this->tableClassName = get_class($this->table);
|
||||||
@ -756,15 +780,15 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4756] make sure published only updates if user has the permission.
|
// [4991] make sure published only updates if user has the permission.
|
||||||
if (isset($values['published']) && !$this->canDo->get('preacher.edit.state'))
|
if (isset($values['published']) && !$this->canDo->get('preacher.edit.state'))
|
||||||
{
|
{
|
||||||
unset($values['published']);
|
unset($values['published']);
|
||||||
}
|
}
|
||||||
// [4769] remove move_copy from array
|
// [5004] remove move_copy from array
|
||||||
unset($values['move_copy']);
|
unset($values['move_copy']);
|
||||||
|
|
||||||
// [4790] Parent exists so we proceed
|
// [5025] Parent exists so we proceed
|
||||||
foreach ($pks as $pk)
|
foreach ($pks as $pk)
|
||||||
{
|
{
|
||||||
if (!$this->user->authorise('preacher.edit', $contexts[$pk]))
|
if (!$this->user->authorise('preacher.edit', $contexts[$pk]))
|
||||||
@ -774,30 +798,30 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4807] Check that the row actually exists
|
// [5042] Check that the row actually exists
|
||||||
if (!$this->table->load($pk))
|
if (!$this->table->load($pk))
|
||||||
{
|
{
|
||||||
if ($error = $this->table->getError())
|
if ($error = $this->table->getError())
|
||||||
{
|
{
|
||||||
// [4812] Fatal error
|
// [5047] Fatal error
|
||||||
$this->setError($error);
|
$this->setError($error);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// [4819] Not fatal error
|
// [5054] Not fatal error
|
||||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4825] insert all set values.
|
// [5060] insert all set values.
|
||||||
if (SermondistributorHelper::checkArray($values))
|
if (SermondistributorHelper::checkArray($values))
|
||||||
{
|
{
|
||||||
foreach ($values as $key => $value)
|
foreach ($values as $key => $value)
|
||||||
{
|
{
|
||||||
// [4830] Do special action for access.
|
// [5065] Do special action for access.
|
||||||
if ('access' == $key && strlen($value) > 0)
|
if ('access' == $key && strlen($value) > 0)
|
||||||
{
|
{
|
||||||
$this->table->$key = $value;
|
$this->table->$key = $value;
|
||||||
@ -810,7 +834,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// [4842] Check the row.
|
// [5077] Check the row.
|
||||||
if (!$this->table->check())
|
if (!$this->table->check())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -823,7 +847,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4855] Store the row.
|
// [5090] Store the row.
|
||||||
if (!$this->table->store())
|
if (!$this->table->store())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -832,7 +856,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4864] Clean the cache
|
// [5099] Clean the cache
|
||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -870,7 +894,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
$data['params'] = (string) $params;
|
$data['params'] = (string) $params;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5146] Alter the name for save as copy
|
// [5381] Alter the name for save as copy
|
||||||
if ($input->get('task') == 'save2copy')
|
if ($input->get('task') == 'save2copy')
|
||||||
{
|
{
|
||||||
$origTable = clone $this->getTable();
|
$origTable = clone $this->getTable();
|
||||||
@ -893,7 +917,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
$data['published'] = 0;
|
$data['published'] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5173] Automatic handling of alias for empty fields
|
// [5408] Automatic handling of alias for empty fields
|
||||||
if (in_array($input->get('task'), array('apply', 'save', 'save2new')) && (int) $input->get('id') == 0)
|
if (in_array($input->get('task'), array('apply', 'save', 'save2new')) && (int) $input->get('id') == 0)
|
||||||
{
|
{
|
||||||
if ($data['alias'] == null)
|
if ($data['alias'] == null)
|
||||||
@ -924,10 +948,10 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5212] Alter the uniqe field for save as copy
|
// [5447] Alter the uniqe field for save as copy
|
||||||
if ($input->get('task') == 'save2copy')
|
if ($input->get('task') == 'save2copy')
|
||||||
{
|
{
|
||||||
// [5215] Automatic handling of other uniqe fields
|
// [5450] Automatic handling of other uniqe fields
|
||||||
$uniqeFields = $this->getUniqeFields();
|
$uniqeFields = $this->getUniqeFields();
|
||||||
if (SermondistributorHelper::checkArray($uniqeFields))
|
if (SermondistributorHelper::checkArray($uniqeFields))
|
||||||
{
|
{
|
||||||
@ -981,7 +1005,7 @@ class SermondistributorModelPreacher extends JModelAdmin
|
|||||||
protected function _generateNewTitle($alias, $title)
|
protected function _generateNewTitle($alias, $title)
|
||||||
{
|
{
|
||||||
|
|
||||||
// [5246] Alter the title & alias
|
// [5481] Alter the title & alias
|
||||||
$table = $this->getTable();
|
$table = $this->getTable();
|
||||||
|
|
||||||
while ($table->load(array('alias' => $alias)))
|
while ($table->load(array('alias' => $alias)))
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage preachers.php
|
@subpackage preachers.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -96,16 +101,16 @@ class SermondistributorModelPreachers extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// [10536] check in items
|
// [10780] check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
// load parent items
|
// load parent items
|
||||||
$items = parent::getItems();
|
$items = parent::getItems();
|
||||||
|
|
||||||
// [10611] set values to display correctly.
|
// [10855] set values to display correctly.
|
||||||
if (SermondistributorHelper::checkArray($items))
|
if (SermondistributorHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// [10614] get user object.
|
// [10858] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
@ -130,19 +135,19 @@ class SermondistributorModelPreachers extends JModelList
|
|||||||
*/
|
*/
|
||||||
protected function getListQuery()
|
protected function getListQuery()
|
||||||
{
|
{
|
||||||
// [7397] Get the user object.
|
// [7637] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [7399] Create a new query object.
|
// [7639] Create a new query object.
|
||||||
$db = JFactory::getDBO();
|
$db = JFactory::getDBO();
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [7402] Select some fields
|
// [7642] Select some fields
|
||||||
$query->select('a.*');
|
$query->select('a.*');
|
||||||
|
|
||||||
// [7409] From the sermondistributor_item table
|
// [7649] From the sermondistributor_item table
|
||||||
$query->from($db->quoteName('#__sermondistributor_preacher', 'a'));
|
$query->from($db->quoteName('#__sermondistributor_preacher', 'a'));
|
||||||
|
|
||||||
// [7423] Filter by published state
|
// [7663] Filter by published state
|
||||||
$published = $this->getState('filter.published');
|
$published = $this->getState('filter.published');
|
||||||
if (is_numeric($published))
|
if (is_numeric($published))
|
||||||
{
|
{
|
||||||
@ -153,21 +158,21 @@ class SermondistributorModelPreachers extends JModelList
|
|||||||
$query->where('(a.published = 0 OR a.published = 1)');
|
$query->where('(a.published = 0 OR a.published = 1)');
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7435] Join over the asset groups.
|
// [7675] Join over the asset groups.
|
||||||
$query->select('ag.title AS access_level');
|
$query->select('ag.title AS access_level');
|
||||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||||
// [7438] Filter by access level.
|
// [7678] Filter by access level.
|
||||||
if ($access = $this->getState('filter.access'))
|
if ($access = $this->getState('filter.access'))
|
||||||
{
|
{
|
||||||
$query->where('a.access = ' . (int) $access);
|
$query->where('a.access = ' . (int) $access);
|
||||||
}
|
}
|
||||||
// [7443] Implement View Level Access
|
// [7683] Implement View Level Access
|
||||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||||
$query->where('a.access IN (' . $groups . ')');
|
$query->where('a.access IN (' . $groups . ')');
|
||||||
}
|
}
|
||||||
// [7520] Filter by search.
|
// [7760] Filter by search.
|
||||||
$search = $this->getState('filter.search');
|
$search = $this->getState('filter.search');
|
||||||
if (!empty($search))
|
if (!empty($search))
|
||||||
{
|
{
|
||||||
@ -183,7 +188,7 @@ class SermondistributorModelPreachers extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// [7479] Add the list ordering clause.
|
// [7719] Add the list ordering clause.
|
||||||
$orderCol = $this->state->get('list.ordering', 'a.id');
|
$orderCol = $this->state->get('list.ordering', 'a.id');
|
||||||
$orderDirn = $this->state->get('list.direction', 'asc');
|
$orderDirn = $this->state->get('list.direction', 'asc');
|
||||||
if ($orderCol != '')
|
if ($orderCol != '')
|
||||||
@ -201,42 +206,42 @@ class SermondistributorModelPreachers extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function getExportData($pks)
|
public function getExportData($pks)
|
||||||
{
|
{
|
||||||
// [7187] setup the query
|
// [7427] setup the query
|
||||||
if (SermondistributorHelper::checkArray($pks))
|
if (SermondistributorHelper::checkArray($pks))
|
||||||
{
|
{
|
||||||
// [7190] Get the user object.
|
// [7430] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [7192] Create a new query object.
|
// [7432] Create a new query object.
|
||||||
$db = JFactory::getDBO();
|
$db = JFactory::getDBO();
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [7195] Select some fields
|
// [7435] Select some fields
|
||||||
$query->select('a.*');
|
$query->select('a.*');
|
||||||
|
|
||||||
// [7197] From the sermondistributor_preacher table
|
// [7437] From the sermondistributor_preacher table
|
||||||
$query->from($db->quoteName('#__sermondistributor_preacher', 'a'));
|
$query->from($db->quoteName('#__sermondistributor_preacher', 'a'));
|
||||||
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
||||||
// [7207] Implement View Level Access
|
// [7447] Implement View Level Access
|
||||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||||
$query->where('a.access IN (' . $groups . ')');
|
$query->where('a.access IN (' . $groups . ')');
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7214] Order the results by ordering
|
// [7454] Order the results by ordering
|
||||||
$query->order('a.ordering ASC');
|
$query->order('a.ordering ASC');
|
||||||
|
|
||||||
// [7216] Load the items
|
// [7456] Load the items
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
$db->execute();
|
$db->execute();
|
||||||
if ($db->getNumRows())
|
if ($db->getNumRows())
|
||||||
{
|
{
|
||||||
$items = $db->loadObjectList();
|
$items = $db->loadObjectList();
|
||||||
|
|
||||||
// [10611] set values to display correctly.
|
// [10855] set values to display correctly.
|
||||||
if (SermondistributorHelper::checkArray($items))
|
if (SermondistributorHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// [10614] get user object.
|
// [10858] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
@ -247,13 +252,13 @@ class SermondistributorModelPreachers extends JModelList
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [10824] unset the values we don't want exported.
|
// [11068] unset the values we don't want exported.
|
||||||
unset($item->asset_id);
|
unset($item->asset_id);
|
||||||
unset($item->checked_out);
|
unset($item->checked_out);
|
||||||
unset($item->checked_out_time);
|
unset($item->checked_out_time);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [10833] Add headers to items array.
|
// [11077] Add headers to items array.
|
||||||
$headers = $this->getExImPortHeaders();
|
$headers = $this->getExImPortHeaders();
|
||||||
if (SermondistributorHelper::checkObject($headers))
|
if (SermondistributorHelper::checkObject($headers))
|
||||||
{
|
{
|
||||||
@ -272,13 +277,13 @@ class SermondistributorModelPreachers extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function getExImPortHeaders()
|
public function getExImPortHeaders()
|
||||||
{
|
{
|
||||||
// [7236] Get a db connection.
|
// [7476] Get a db connection.
|
||||||
$db = JFactory::getDbo();
|
$db = JFactory::getDbo();
|
||||||
// [7238] get the columns
|
// [7478] get the columns
|
||||||
$columns = $db->getTableColumns("#__sermondistributor_preacher");
|
$columns = $db->getTableColumns("#__sermondistributor_preacher");
|
||||||
if (SermondistributorHelper::checkArray($columns))
|
if (SermondistributorHelper::checkArray($columns))
|
||||||
{
|
{
|
||||||
// [7242] remove the headers you don't import/export.
|
// [7482] remove the headers you don't import/export.
|
||||||
unset($columns['asset_id']);
|
unset($columns['asset_id']);
|
||||||
unset($columns['checked_out']);
|
unset($columns['checked_out']);
|
||||||
unset($columns['checked_out_time']);
|
unset($columns['checked_out_time']);
|
||||||
@ -300,7 +305,7 @@ class SermondistributorModelPreachers extends JModelList
|
|||||||
*/
|
*/
|
||||||
protected function getStoreId($id = '')
|
protected function getStoreId($id = '')
|
||||||
{
|
{
|
||||||
// [10159] Compile the store id.
|
// [10403] Compile the store id.
|
||||||
$id .= ':' . $this->getState('filter.id');
|
$id .= ':' . $this->getState('filter.id');
|
||||||
$id .= ':' . $this->getState('filter.search');
|
$id .= ':' . $this->getState('filter.search');
|
||||||
$id .= ':' . $this->getState('filter.published');
|
$id .= ':' . $this->getState('filter.published');
|
||||||
@ -321,15 +326,15 @@ class SermondistributorModelPreachers extends JModelList
|
|||||||
*/
|
*/
|
||||||
protected function checkInNow()
|
protected function checkInNow()
|
||||||
{
|
{
|
||||||
// [10552] Get set check in time
|
// [10796] Get set check in time
|
||||||
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
|
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
|
||||||
|
|
||||||
if ($time)
|
if ($time)
|
||||||
{
|
{
|
||||||
|
|
||||||
// [10557] Get a db connection.
|
// [10801] Get a db connection.
|
||||||
$db = JFactory::getDbo();
|
$db = JFactory::getDbo();
|
||||||
// [10559] reset query
|
// [10803] reset query
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
$query->select('*');
|
$query->select('*');
|
||||||
$query->from($db->quoteName('#__sermondistributor_preacher'));
|
$query->from($db->quoteName('#__sermondistributor_preacher'));
|
||||||
@ -337,24 +342,24 @@ class SermondistributorModelPreachers extends JModelList
|
|||||||
$db->execute();
|
$db->execute();
|
||||||
if ($db->getNumRows())
|
if ($db->getNumRows())
|
||||||
{
|
{
|
||||||
// [10567] Get Yesterdays date
|
// [10811] Get Yesterdays date
|
||||||
$date = JFactory::getDate()->modify($time)->toSql();
|
$date = JFactory::getDate()->modify($time)->toSql();
|
||||||
// [10569] reset query
|
// [10813] reset query
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [10571] Fields to update.
|
// [10815] Fields to update.
|
||||||
$fields = array(
|
$fields = array(
|
||||||
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
||||||
$db->quoteName('checked_out') . '=0'
|
$db->quoteName('checked_out') . '=0'
|
||||||
);
|
);
|
||||||
|
|
||||||
// [10576] Conditions for which records should be updated.
|
// [10820] Conditions for which records should be updated.
|
||||||
$conditions = array(
|
$conditions = array(
|
||||||
$db->quoteName('checked_out') . '!=0',
|
$db->quoteName('checked_out') . '!=0',
|
||||||
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
||||||
);
|
);
|
||||||
|
|
||||||
// [10581] Check table
|
// [10825] Check table
|
||||||
$query->update($db->quoteName('#__sermondistributor_preacher'))->set($fields)->where($conditions);
|
$query->update($db->quoteName('#__sermondistributor_preacher'))->set($fields)->where($conditions);
|
||||||
|
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage series.php
|
@subpackage series.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -96,7 +101,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
$item->tags->getTagIds($item->id, 'com_sermondistributor.series');
|
$item->tags->getTagIds($item->id, 'com_sermondistributor.series');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->serieshsnv = $item->id;
|
$this->seriesqajj = $item->id;
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
@ -106,74 +111,74 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getWxrsermons()
|
public function getEkusermons()
|
||||||
{
|
{
|
||||||
// [6945] Get the user object.
|
// [7185] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [6947] Create a new query object.
|
// [7187] Create a new query object.
|
||||||
$db = JFactory::getDBO();
|
$db = JFactory::getDBO();
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [6950] Select some fields
|
// [7190] Select some fields
|
||||||
$query->select('a.*');
|
$query->select('a.*');
|
||||||
$query->select($db->quoteName('c.title','category_title'));
|
$query->select($db->quoteName('c.title','category_title'));
|
||||||
|
|
||||||
// [6957] From the sermondistributor_sermon table
|
// [7197] From the sermondistributor_sermon table
|
||||||
$query->from($db->quoteName('#__sermondistributor_sermon', 'a'));
|
$query->from($db->quoteName('#__sermondistributor_sermon', 'a'));
|
||||||
$query->join('LEFT', $db->quoteName('#__categories', 'c') . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('c.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__categories', 'c') . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('c.id') . ')');
|
||||||
|
|
||||||
// [7550] From the sermondistributor_preacher table.
|
// [7790] From the sermondistributor_preacher table.
|
||||||
$query->select($db->quoteName('g.name','preacher_name'));
|
$query->select($db->quoteName('g.name','preacher_name'));
|
||||||
$query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'g') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('g.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'g') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('g.id') . ')');
|
||||||
|
|
||||||
// [7550] From the sermondistributor_series table.
|
// [7790] From the sermondistributor_series table.
|
||||||
$query->select($db->quoteName('h.name','series_name'));
|
$query->select($db->quoteName('h.name','series_name'));
|
||||||
$query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'h') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('h.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'h') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('h.id') . ')');
|
||||||
|
|
||||||
// [6973] Filter by serieshsnv global.
|
// [7213] Filter by seriesqajj global.
|
||||||
$serieshsnv = $this->serieshsnv;
|
$seriesqajj = $this->seriesqajj;
|
||||||
if (is_numeric($serieshsnv ))
|
if (is_numeric($seriesqajj ))
|
||||||
{
|
{
|
||||||
$query->where('a.series = ' . (int) $serieshsnv );
|
$query->where('a.series = ' . (int) $seriesqajj );
|
||||||
}
|
}
|
||||||
elseif (is_string($serieshsnv))
|
elseif (is_string($seriesqajj))
|
||||||
{
|
{
|
||||||
$query->where('a.series = ' . $db->quote($serieshsnv));
|
$query->where('a.series = ' . $db->quote($seriesqajj));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$query->where('a.series = -5');
|
$query->where('a.series = -5');
|
||||||
}
|
}
|
||||||
|
|
||||||
// [6990] Join over the asset groups.
|
// [7230] Join over the asset groups.
|
||||||
$query->select('ag.title AS access_level');
|
$query->select('ag.title AS access_level');
|
||||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||||
// [6993] Filter by access level.
|
// [7233] Filter by access level.
|
||||||
if ($access = $this->getState('filter.access'))
|
if ($access = $this->getState('filter.access'))
|
||||||
{
|
{
|
||||||
$query->where('a.access = ' . (int) $access);
|
$query->where('a.access = ' . (int) $access);
|
||||||
}
|
}
|
||||||
// [6998] Implement View Level Access
|
// [7238] Implement View Level Access
|
||||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||||
$query->where('a.access IN (' . $groups . ')');
|
$query->where('a.access IN (' . $groups . ')');
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7005] Order the results by ordering
|
// [7245] Order the results by ordering
|
||||||
$query->order('a.ordering ASC');
|
$query->order('a.ordering ASC');
|
||||||
|
|
||||||
// [7007] Load the items
|
// [7247] Load the items
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
$db->execute();
|
$db->execute();
|
||||||
if ($db->getNumRows())
|
if ($db->getNumRows())
|
||||||
{
|
{
|
||||||
$items = $db->loadObjectList();
|
$items = $db->loadObjectList();
|
||||||
|
|
||||||
// [10611] set values to display correctly.
|
// [10855] set values to display correctly.
|
||||||
if (SermondistributorHelper::checkArray($items))
|
if (SermondistributorHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// [10614] get user object.
|
// [10858] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
@ -187,15 +192,15 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [10877] set selection value to a translatable value
|
// [11121] set selection value to a translatable value
|
||||||
if (SermondistributorHelper::checkArray($items))
|
if (SermondistributorHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
// [10884] convert link_type
|
// [11128] convert link_type
|
||||||
$item->link_type = $this->selectionTranslationWxrsermons($item->link_type, 'link_type');
|
$item->link_type = $this->selectionTranslationEkusermons($item->link_type, 'link_type');
|
||||||
// [10884] convert source
|
// [11128] convert source
|
||||||
$item->source = $this->selectionTranslationWxrsermons($item->source, 'source');
|
$item->source = $this->selectionTranslationEkusermons($item->source, 'source');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -209,22 +214,22 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return translatable string
|
* @return translatable string
|
||||||
*/
|
*/
|
||||||
public function selectionTranslationWxrsermons($value,$name)
|
public function selectionTranslationEkusermons($value,$name)
|
||||||
{
|
{
|
||||||
// [10910] Array of link_type language strings
|
// [11154] Array of link_type language strings
|
||||||
if ($name == 'link_type')
|
if ($name == 'link_type')
|
||||||
{
|
{
|
||||||
$link_typeArray = array(
|
$link_typeArray = array(
|
||||||
1 => 'COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED',
|
1 => 'COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED',
|
||||||
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DIRECT'
|
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DIRECT'
|
||||||
);
|
);
|
||||||
// [10941] Now check if value is found in this array
|
// [11185] Now check if value is found in this array
|
||||||
if (isset($link_typeArray[$value]) && SermondistributorHelper::checkString($link_typeArray[$value]))
|
if (isset($link_typeArray[$value]) && SermondistributorHelper::checkString($link_typeArray[$value]))
|
||||||
{
|
{
|
||||||
return $link_typeArray[$value];
|
return $link_typeArray[$value];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [10910] Array of source language strings
|
// [11154] Array of source language strings
|
||||||
if ($name == 'source')
|
if ($name == 'source')
|
||||||
{
|
{
|
||||||
$sourceArray = array(
|
$sourceArray = array(
|
||||||
@ -233,7 +238,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DROPBOX',
|
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DROPBOX',
|
||||||
3 => 'COM_SERMONDISTRIBUTOR_SERMON_URL'
|
3 => 'COM_SERMONDISTRIBUTOR_SERMON_URL'
|
||||||
);
|
);
|
||||||
// [10941] Now check if value is found in this array
|
// [11185] Now check if value is found in this array
|
||||||
if (isset($sourceArray[$value]) && SermondistributorHelper::checkString($sourceArray[$value]))
|
if (isset($sourceArray[$value]) && SermondistributorHelper::checkString($sourceArray[$value]))
|
||||||
{
|
{
|
||||||
return $sourceArray[$value];
|
return $sourceArray[$value];
|
||||||
@ -253,7 +258,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function getForm($data = array(), $loadData = true)
|
public function getForm($data = array(), $loadData = true)
|
||||||
{ // [9566] Get the form.
|
{ // [9806] Get the form.
|
||||||
$form = $this->loadForm('com_sermondistributor.series', 'series', array('control' => 'jform', 'load_data' => $loadData));
|
$form = $this->loadForm('com_sermondistributor.series', 'series', array('control' => 'jform', 'load_data' => $loadData));
|
||||||
|
|
||||||
if (empty($form))
|
if (empty($form))
|
||||||
@ -263,12 +268,12 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
|
|
||||||
$jinput = JFactory::getApplication()->input;
|
$jinput = JFactory::getApplication()->input;
|
||||||
|
|
||||||
// [9651] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
|
// [9891] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
|
||||||
if ($jinput->get('a_id'))
|
if ($jinput->get('a_id'))
|
||||||
{
|
{
|
||||||
$id = $jinput->get('a_id', 0, 'INT');
|
$id = $jinput->get('a_id', 0, 'INT');
|
||||||
}
|
}
|
||||||
// [9656] The back end uses id so we use that the rest of the time and set it to 0 by default.
|
// [9896] The back end uses id so we use that the rest of the time and set it to 0 by default.
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$id = $jinput->get('id', 0, 'INT');
|
$id = $jinput->get('id', 0, 'INT');
|
||||||
@ -276,36 +281,36 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
|
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
// [9662] Check for existing item.
|
// [9902] Check for existing item.
|
||||||
// [9663] Modify the form based on Edit State access controls.
|
// [9903] Modify the form based on Edit State access controls.
|
||||||
if ($id != 0 && (!$user->authorise('series.edit.state', 'com_sermondistributor.series.' . (int) $id))
|
if ($id != 0 && (!$user->authorise('series.edit.state', 'com_sermondistributor.series.' . (int) $id))
|
||||||
|| ($id == 0 && !$user->authorise('series.edit.state', 'com_sermondistributor')))
|
|| ($id == 0 && !$user->authorise('series.edit.state', 'com_sermondistributor')))
|
||||||
{
|
{
|
||||||
// [9676] Disable fields for display.
|
// [9916] Disable fields for display.
|
||||||
$form->setFieldAttribute('ordering', 'disabled', 'true');
|
$form->setFieldAttribute('ordering', 'disabled', 'true');
|
||||||
$form->setFieldAttribute('published', 'disabled', 'true');
|
$form->setFieldAttribute('published', 'disabled', 'true');
|
||||||
// [9679] Disable fields while saving.
|
// [9919] Disable fields while saving.
|
||||||
$form->setFieldAttribute('ordering', 'filter', 'unset');
|
$form->setFieldAttribute('ordering', 'filter', 'unset');
|
||||||
$form->setFieldAttribute('published', 'filter', 'unset');
|
$form->setFieldAttribute('published', 'filter', 'unset');
|
||||||
}
|
}
|
||||||
// [9684] Modify the form based on Edit Creaded By access controls.
|
// [9924] Modify the form based on Edit Creaded By access controls.
|
||||||
if ($id != 0 && (!$user->authorise('series.edit.created_by', 'com_sermondistributor.series.' . (int) $id))
|
if ($id != 0 && (!$user->authorise('series.edit.created_by', 'com_sermondistributor.series.' . (int) $id))
|
||||||
|| ($id == 0 && !$user->authorise('series.edit.created_by', 'com_sermondistributor')))
|
|| ($id == 0 && !$user->authorise('series.edit.created_by', 'com_sermondistributor')))
|
||||||
{
|
{
|
||||||
// [9696] Disable fields for display.
|
// [9936] Disable fields for display.
|
||||||
$form->setFieldAttribute('created_by', 'disabled', 'true');
|
$form->setFieldAttribute('created_by', 'disabled', 'true');
|
||||||
// [9698] Disable fields for display.
|
// [9938] Disable fields for display.
|
||||||
$form->setFieldAttribute('created_by', 'readonly', 'true');
|
$form->setFieldAttribute('created_by', 'readonly', 'true');
|
||||||
// [9700] Disable fields while saving.
|
// [9940] Disable fields while saving.
|
||||||
$form->setFieldAttribute('created_by', 'filter', 'unset');
|
$form->setFieldAttribute('created_by', 'filter', 'unset');
|
||||||
}
|
}
|
||||||
// [9703] Modify the form based on Edit Creaded Date access controls.
|
// [9943] Modify the form based on Edit Creaded Date access controls.
|
||||||
if ($id != 0 && (!$user->authorise('series.edit.created', 'com_sermondistributor.series.' . (int) $id))
|
if ($id != 0 && (!$user->authorise('series.edit.created', 'com_sermondistributor.series.' . (int) $id))
|
||||||
|| ($id == 0 && !$user->authorise('series.edit.created', 'com_sermondistributor')))
|
|| ($id == 0 && !$user->authorise('series.edit.created', 'com_sermondistributor')))
|
||||||
{
|
{
|
||||||
// [9715] Disable fields for display.
|
// [9955] Disable fields for display.
|
||||||
$form->setFieldAttribute('created', 'disabled', 'true');
|
$form->setFieldAttribute('created', 'disabled', 'true');
|
||||||
// [9717] Disable fields while saving.
|
// [9957] Disable fields while saving.
|
||||||
$form->setFieldAttribute('created', 'filter', 'unset');
|
$form->setFieldAttribute('created', 'filter', 'unset');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -341,7 +346,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [9867] The record has been set. Check the record permissions.
|
// [10107] The record has been set. Check the record permissions.
|
||||||
return $user->authorise('series.delete', 'com_sermondistributor.series.' . (int) $record->id);
|
return $user->authorise('series.delete', 'com_sermondistributor.series.' . (int) $record->id);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -363,14 +368,14 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
|
|
||||||
if ($recordId)
|
if ($recordId)
|
||||||
{
|
{
|
||||||
// [9954] The record has been set. Check the record permissions.
|
// [10194] The record has been set. Check the record permissions.
|
||||||
$permission = $user->authorise('series.edit.state', 'com_sermondistributor.series.' . (int) $recordId);
|
$permission = $user->authorise('series.edit.state', 'com_sermondistributor.series.' . (int) $recordId);
|
||||||
if (!$permission && !is_null($permission))
|
if (!$permission && !is_null($permission))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [9971] In the absense of better information, revert to the component permissions.
|
// [10211] In the absense of better information, revert to the component permissions.
|
||||||
return $user->authorise('series.edit.state', 'com_sermondistributor');
|
return $user->authorise('series.edit.state', 'com_sermondistributor');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -385,7 +390,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
*/
|
*/
|
||||||
protected function allowEdit($data = array(), $key = 'id')
|
protected function allowEdit($data = array(), $key = 'id')
|
||||||
{
|
{
|
||||||
// [9779] Check specific edit permission then general edit permission.
|
// [10019] Check specific edit permission then general edit permission.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
return $user->authorise('series.edit', 'com_sermondistributor.series.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('series.edit', 'com_sermondistributor');
|
return $user->authorise('series.edit', 'com_sermondistributor.series.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('series.edit', 'com_sermondistributor');
|
||||||
@ -481,6 +486,25 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to delete one or more records.
|
||||||
|
*
|
||||||
|
* @param array &$pks An array of record primary keys.
|
||||||
|
*
|
||||||
|
* @return boolean True if successful, false if an error occurs.
|
||||||
|
*
|
||||||
|
* @since 12.2
|
||||||
|
*/
|
||||||
|
public function delete(&$pks)
|
||||||
|
{
|
||||||
|
if (!parent::delete($pks))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to perform batch operations on an item or a set of items.
|
* Method to perform batch operations on an item or a set of items.
|
||||||
*
|
*
|
||||||
@ -592,7 +616,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
{
|
{
|
||||||
if (empty($this->batchSet))
|
if (empty($this->batchSet))
|
||||||
{
|
{
|
||||||
// [4932] Set some needed variables.
|
// [5167] Set some needed variables.
|
||||||
$this->user = JFactory::getUser();
|
$this->user = JFactory::getUser();
|
||||||
$this->table = $this->getTable();
|
$this->table = $this->getTable();
|
||||||
$this->tableClassName = get_class($this->table);
|
$this->tableClassName = get_class($this->table);
|
||||||
@ -606,12 +630,12 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4952] get list of uniqe fields
|
// [5187] get list of uniqe fields
|
||||||
$uniqeFields = $this->getUniqeFields();
|
$uniqeFields = $this->getUniqeFields();
|
||||||
// [4954] remove move_copy from array
|
// [5189] remove move_copy from array
|
||||||
unset($values['move_copy']);
|
unset($values['move_copy']);
|
||||||
|
|
||||||
// [4957] make sure published is set
|
// [5192] make sure published is set
|
||||||
if (!isset($values['published']))
|
if (!isset($values['published']))
|
||||||
{
|
{
|
||||||
$values['published'] = 0;
|
$values['published'] = 0;
|
||||||
@ -623,21 +647,21 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
|
|
||||||
$newIds = array();
|
$newIds = array();
|
||||||
|
|
||||||
// [4994] Parent exists so let's proceed
|
// [5229] Parent exists so let's proceed
|
||||||
while (!empty($pks))
|
while (!empty($pks))
|
||||||
{
|
{
|
||||||
// [4997] Pop the first ID off the stack
|
// [5232] Pop the first ID off the stack
|
||||||
$pk = array_shift($pks);
|
$pk = array_shift($pks);
|
||||||
|
|
||||||
$this->table->reset();
|
$this->table->reset();
|
||||||
|
|
||||||
// [5002] only allow copy if user may edit this item.
|
// [5237] only allow copy if user may edit this item.
|
||||||
|
|
||||||
if (!$this->user->authorise('series.edit', $contexts[$pk]))
|
if (!$this->user->authorise('series.edit', $contexts[$pk]))
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
// [5012] Not fatal error
|
// [5247] Not fatal error
|
||||||
|
|
||||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||||
|
|
||||||
@ -645,19 +669,19 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5017] Check that the row actually exists
|
// [5252] Check that the row actually exists
|
||||||
if (!$this->table->load($pk))
|
if (!$this->table->load($pk))
|
||||||
{
|
{
|
||||||
if ($error = $this->table->getError())
|
if ($error = $this->table->getError())
|
||||||
{
|
{
|
||||||
// [5022] Fatal error
|
// [5257] Fatal error
|
||||||
$this->setError($error);
|
$this->setError($error);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// [5029] Not fatal error
|
// [5264] Not fatal error
|
||||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -665,7 +689,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
|
|
||||||
list($this->table->name, $this->table->alias) = $this->_generateNewTitle($this->table->alias, $this->table->name);
|
list($this->table->name, $this->table->alias) = $this->_generateNewTitle($this->table->alias, $this->table->name);
|
||||||
|
|
||||||
// [5065] insert all set values
|
// [5300] insert all set values
|
||||||
if (SermondistributorHelper::checkArray($values))
|
if (SermondistributorHelper::checkArray($values))
|
||||||
{
|
{
|
||||||
foreach ($values as $key => $value)
|
foreach ($values as $key => $value)
|
||||||
@ -677,7 +701,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5077] update all uniqe fields
|
// [5312] update all uniqe fields
|
||||||
if (SermondistributorHelper::checkArray($uniqeFields))
|
if (SermondistributorHelper::checkArray($uniqeFields))
|
||||||
{
|
{
|
||||||
foreach ($uniqeFields as $uniqeField)
|
foreach ($uniqeFields as $uniqeField)
|
||||||
@ -686,13 +710,13 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5086] Reset the ID because we are making a copy
|
// [5321] Reset the ID because we are making a copy
|
||||||
$this->table->id = 0;
|
$this->table->id = 0;
|
||||||
|
|
||||||
// [5089] TODO: Deal with ordering?
|
// [5324] TODO: Deal with ordering?
|
||||||
// [5090] $this->table->ordering = 1;
|
// [5325] $this->table->ordering = 1;
|
||||||
|
|
||||||
// [5092] Check the row.
|
// [5327] Check the row.
|
||||||
if (!$this->table->check())
|
if (!$this->table->check())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -705,7 +729,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5105] Store the row.
|
// [5340] Store the row.
|
||||||
if (!$this->table->store())
|
if (!$this->table->store())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -713,14 +737,14 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5113] Get the new item ID
|
// [5348] Get the new item ID
|
||||||
$newId = $this->table->get('id');
|
$newId = $this->table->get('id');
|
||||||
|
|
||||||
// [5116] Add the new ID to the array
|
// [5351] Add the new ID to the array
|
||||||
$newIds[$pk] = $newId;
|
$newIds[$pk] = $newId;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5120] Clean the cache
|
// [5355] Clean the cache
|
||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
@ -741,7 +765,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
{
|
{
|
||||||
if (empty($this->batchSet))
|
if (empty($this->batchSet))
|
||||||
{
|
{
|
||||||
// [4734] Set some needed variables.
|
// [4969] Set some needed variables.
|
||||||
$this->user = JFactory::getUser();
|
$this->user = JFactory::getUser();
|
||||||
$this->table = $this->getTable();
|
$this->table = $this->getTable();
|
||||||
$this->tableClassName = get_class($this->table);
|
$this->tableClassName = get_class($this->table);
|
||||||
@ -756,15 +780,15 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4756] make sure published only updates if user has the permission.
|
// [4991] make sure published only updates if user has the permission.
|
||||||
if (isset($values['published']) && !$this->canDo->get('series.edit.state'))
|
if (isset($values['published']) && !$this->canDo->get('series.edit.state'))
|
||||||
{
|
{
|
||||||
unset($values['published']);
|
unset($values['published']);
|
||||||
}
|
}
|
||||||
// [4769] remove move_copy from array
|
// [5004] remove move_copy from array
|
||||||
unset($values['move_copy']);
|
unset($values['move_copy']);
|
||||||
|
|
||||||
// [4790] Parent exists so we proceed
|
// [5025] Parent exists so we proceed
|
||||||
foreach ($pks as $pk)
|
foreach ($pks as $pk)
|
||||||
{
|
{
|
||||||
if (!$this->user->authorise('series.edit', $contexts[$pk]))
|
if (!$this->user->authorise('series.edit', $contexts[$pk]))
|
||||||
@ -774,30 +798,30 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4807] Check that the row actually exists
|
// [5042] Check that the row actually exists
|
||||||
if (!$this->table->load($pk))
|
if (!$this->table->load($pk))
|
||||||
{
|
{
|
||||||
if ($error = $this->table->getError())
|
if ($error = $this->table->getError())
|
||||||
{
|
{
|
||||||
// [4812] Fatal error
|
// [5047] Fatal error
|
||||||
$this->setError($error);
|
$this->setError($error);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// [4819] Not fatal error
|
// [5054] Not fatal error
|
||||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4825] insert all set values.
|
// [5060] insert all set values.
|
||||||
if (SermondistributorHelper::checkArray($values))
|
if (SermondistributorHelper::checkArray($values))
|
||||||
{
|
{
|
||||||
foreach ($values as $key => $value)
|
foreach ($values as $key => $value)
|
||||||
{
|
{
|
||||||
// [4830] Do special action for access.
|
// [5065] Do special action for access.
|
||||||
if ('access' == $key && strlen($value) > 0)
|
if ('access' == $key && strlen($value) > 0)
|
||||||
{
|
{
|
||||||
$this->table->$key = $value;
|
$this->table->$key = $value;
|
||||||
@ -810,7 +834,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// [4842] Check the row.
|
// [5077] Check the row.
|
||||||
if (!$this->table->check())
|
if (!$this->table->check())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -823,7 +847,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4855] Store the row.
|
// [5090] Store the row.
|
||||||
if (!$this->table->store())
|
if (!$this->table->store())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -832,7 +856,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4864] Clean the cache
|
// [5099] Clean the cache
|
||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -870,7 +894,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
$data['params'] = (string) $params;
|
$data['params'] = (string) $params;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5146] Alter the name for save as copy
|
// [5381] Alter the name for save as copy
|
||||||
if ($input->get('task') == 'save2copy')
|
if ($input->get('task') == 'save2copy')
|
||||||
{
|
{
|
||||||
$origTable = clone $this->getTable();
|
$origTable = clone $this->getTable();
|
||||||
@ -893,7 +917,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
$data['published'] = 0;
|
$data['published'] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5173] Automatic handling of alias for empty fields
|
// [5408] Automatic handling of alias for empty fields
|
||||||
if (in_array($input->get('task'), array('apply', 'save', 'save2new')) && (int) $input->get('id') == 0)
|
if (in_array($input->get('task'), array('apply', 'save', 'save2new')) && (int) $input->get('id') == 0)
|
||||||
{
|
{
|
||||||
if ($data['alias'] == null)
|
if ($data['alias'] == null)
|
||||||
@ -924,10 +948,10 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5212] Alter the uniqe field for save as copy
|
// [5447] Alter the uniqe field for save as copy
|
||||||
if ($input->get('task') == 'save2copy')
|
if ($input->get('task') == 'save2copy')
|
||||||
{
|
{
|
||||||
// [5215] Automatic handling of other uniqe fields
|
// [5450] Automatic handling of other uniqe fields
|
||||||
$uniqeFields = $this->getUniqeFields();
|
$uniqeFields = $this->getUniqeFields();
|
||||||
if (SermondistributorHelper::checkArray($uniqeFields))
|
if (SermondistributorHelper::checkArray($uniqeFields))
|
||||||
{
|
{
|
||||||
@ -981,7 +1005,7 @@ class SermondistributorModelSeries extends JModelAdmin
|
|||||||
protected function _generateNewTitle($alias, $title)
|
protected function _generateNewTitle($alias, $title)
|
||||||
{
|
{
|
||||||
|
|
||||||
// [5246] Alter the title & alias
|
// [5481] Alter the title & alias
|
||||||
$table = $this->getTable();
|
$table = $this->getTable();
|
||||||
|
|
||||||
while ($table->load(array('alias' => $alias)))
|
while ($table->load(array('alias' => $alias)))
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage series_list.php
|
@subpackage series_list.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -92,16 +97,16 @@ class SermondistributorModelSeries_list extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// [10536] check in items
|
// [10780] check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
// load parent items
|
// load parent items
|
||||||
$items = parent::getItems();
|
$items = parent::getItems();
|
||||||
|
|
||||||
// [10611] set values to display correctly.
|
// [10855] set values to display correctly.
|
||||||
if (SermondistributorHelper::checkArray($items))
|
if (SermondistributorHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// [10614] get user object.
|
// [10858] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
@ -126,19 +131,19 @@ class SermondistributorModelSeries_list extends JModelList
|
|||||||
*/
|
*/
|
||||||
protected function getListQuery()
|
protected function getListQuery()
|
||||||
{
|
{
|
||||||
// [7397] Get the user object.
|
// [7637] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [7399] Create a new query object.
|
// [7639] Create a new query object.
|
||||||
$db = JFactory::getDBO();
|
$db = JFactory::getDBO();
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [7402] Select some fields
|
// [7642] Select some fields
|
||||||
$query->select('a.*');
|
$query->select('a.*');
|
||||||
|
|
||||||
// [7409] From the sermondistributor_item table
|
// [7649] From the sermondistributor_item table
|
||||||
$query->from($db->quoteName('#__sermondistributor_series', 'a'));
|
$query->from($db->quoteName('#__sermondistributor_series', 'a'));
|
||||||
|
|
||||||
// [7423] Filter by published state
|
// [7663] Filter by published state
|
||||||
$published = $this->getState('filter.published');
|
$published = $this->getState('filter.published');
|
||||||
if (is_numeric($published))
|
if (is_numeric($published))
|
||||||
{
|
{
|
||||||
@ -149,21 +154,21 @@ class SermondistributorModelSeries_list extends JModelList
|
|||||||
$query->where('(a.published = 0 OR a.published = 1)');
|
$query->where('(a.published = 0 OR a.published = 1)');
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7435] Join over the asset groups.
|
// [7675] Join over the asset groups.
|
||||||
$query->select('ag.title AS access_level');
|
$query->select('ag.title AS access_level');
|
||||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||||
// [7438] Filter by access level.
|
// [7678] Filter by access level.
|
||||||
if ($access = $this->getState('filter.access'))
|
if ($access = $this->getState('filter.access'))
|
||||||
{
|
{
|
||||||
$query->where('a.access = ' . (int) $access);
|
$query->where('a.access = ' . (int) $access);
|
||||||
}
|
}
|
||||||
// [7443] Implement View Level Access
|
// [7683] Implement View Level Access
|
||||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||||
$query->where('a.access IN (' . $groups . ')');
|
$query->where('a.access IN (' . $groups . ')');
|
||||||
}
|
}
|
||||||
// [7520] Filter by search.
|
// [7760] Filter by search.
|
||||||
$search = $this->getState('filter.search');
|
$search = $this->getState('filter.search');
|
||||||
if (!empty($search))
|
if (!empty($search))
|
||||||
{
|
{
|
||||||
@ -174,12 +179,12 @@ class SermondistributorModelSeries_list extends JModelList
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$search = $db->quote('%' . $db->escape($search, true) . '%');
|
$search = $db->quote('%' . $db->escape($search, true) . '%');
|
||||||
$query->where('(a.name LIKE '.$search.')');
|
$query->where('(a.name LIKE '.$search.' OR a.scripture LIKE '.$search.')');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// [7479] Add the list ordering clause.
|
// [7719] Add the list ordering clause.
|
||||||
$orderCol = $this->state->get('list.ordering', 'a.id');
|
$orderCol = $this->state->get('list.ordering', 'a.id');
|
||||||
$orderDirn = $this->state->get('list.direction', 'asc');
|
$orderDirn = $this->state->get('list.direction', 'asc');
|
||||||
if ($orderCol != '')
|
if ($orderCol != '')
|
||||||
@ -197,42 +202,42 @@ class SermondistributorModelSeries_list extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function getExportData($pks)
|
public function getExportData($pks)
|
||||||
{
|
{
|
||||||
// [7187] setup the query
|
// [7427] setup the query
|
||||||
if (SermondistributorHelper::checkArray($pks))
|
if (SermondistributorHelper::checkArray($pks))
|
||||||
{
|
{
|
||||||
// [7190] Get the user object.
|
// [7430] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [7192] Create a new query object.
|
// [7432] Create a new query object.
|
||||||
$db = JFactory::getDBO();
|
$db = JFactory::getDBO();
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [7195] Select some fields
|
// [7435] Select some fields
|
||||||
$query->select('a.*');
|
$query->select('a.*');
|
||||||
|
|
||||||
// [7197] From the sermondistributor_series table
|
// [7437] From the sermondistributor_series table
|
||||||
$query->from($db->quoteName('#__sermondistributor_series', 'a'));
|
$query->from($db->quoteName('#__sermondistributor_series', 'a'));
|
||||||
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
||||||
// [7207] Implement View Level Access
|
// [7447] Implement View Level Access
|
||||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||||
$query->where('a.access IN (' . $groups . ')');
|
$query->where('a.access IN (' . $groups . ')');
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7214] Order the results by ordering
|
// [7454] Order the results by ordering
|
||||||
$query->order('a.ordering ASC');
|
$query->order('a.ordering ASC');
|
||||||
|
|
||||||
// [7216] Load the items
|
// [7456] Load the items
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
$db->execute();
|
$db->execute();
|
||||||
if ($db->getNumRows())
|
if ($db->getNumRows())
|
||||||
{
|
{
|
||||||
$items = $db->loadObjectList();
|
$items = $db->loadObjectList();
|
||||||
|
|
||||||
// [10611] set values to display correctly.
|
// [10855] set values to display correctly.
|
||||||
if (SermondistributorHelper::checkArray($items))
|
if (SermondistributorHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// [10614] get user object.
|
// [10858] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
@ -243,13 +248,13 @@ class SermondistributorModelSeries_list extends JModelList
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [10824] unset the values we don't want exported.
|
// [11068] unset the values we don't want exported.
|
||||||
unset($item->asset_id);
|
unset($item->asset_id);
|
||||||
unset($item->checked_out);
|
unset($item->checked_out);
|
||||||
unset($item->checked_out_time);
|
unset($item->checked_out_time);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [10833] Add headers to items array.
|
// [11077] Add headers to items array.
|
||||||
$headers = $this->getExImPortHeaders();
|
$headers = $this->getExImPortHeaders();
|
||||||
if (SermondistributorHelper::checkObject($headers))
|
if (SermondistributorHelper::checkObject($headers))
|
||||||
{
|
{
|
||||||
@ -268,13 +273,13 @@ class SermondistributorModelSeries_list extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function getExImPortHeaders()
|
public function getExImPortHeaders()
|
||||||
{
|
{
|
||||||
// [7236] Get a db connection.
|
// [7476] Get a db connection.
|
||||||
$db = JFactory::getDbo();
|
$db = JFactory::getDbo();
|
||||||
// [7238] get the columns
|
// [7478] get the columns
|
||||||
$columns = $db->getTableColumns("#__sermondistributor_series");
|
$columns = $db->getTableColumns("#__sermondistributor_series");
|
||||||
if (SermondistributorHelper::checkArray($columns))
|
if (SermondistributorHelper::checkArray($columns))
|
||||||
{
|
{
|
||||||
// [7242] remove the headers you don't import/export.
|
// [7482] remove the headers you don't import/export.
|
||||||
unset($columns['asset_id']);
|
unset($columns['asset_id']);
|
||||||
unset($columns['checked_out']);
|
unset($columns['checked_out']);
|
||||||
unset($columns['checked_out_time']);
|
unset($columns['checked_out_time']);
|
||||||
@ -296,7 +301,7 @@ class SermondistributorModelSeries_list extends JModelList
|
|||||||
*/
|
*/
|
||||||
protected function getStoreId($id = '')
|
protected function getStoreId($id = '')
|
||||||
{
|
{
|
||||||
// [10159] Compile the store id.
|
// [10403] Compile the store id.
|
||||||
$id .= ':' . $this->getState('filter.id');
|
$id .= ':' . $this->getState('filter.id');
|
||||||
$id .= ':' . $this->getState('filter.search');
|
$id .= ':' . $this->getState('filter.search');
|
||||||
$id .= ':' . $this->getState('filter.published');
|
$id .= ':' . $this->getState('filter.published');
|
||||||
@ -316,15 +321,15 @@ class SermondistributorModelSeries_list extends JModelList
|
|||||||
*/
|
*/
|
||||||
protected function checkInNow()
|
protected function checkInNow()
|
||||||
{
|
{
|
||||||
// [10552] Get set check in time
|
// [10796] Get set check in time
|
||||||
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
|
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
|
||||||
|
|
||||||
if ($time)
|
if ($time)
|
||||||
{
|
{
|
||||||
|
|
||||||
// [10557] Get a db connection.
|
// [10801] Get a db connection.
|
||||||
$db = JFactory::getDbo();
|
$db = JFactory::getDbo();
|
||||||
// [10559] reset query
|
// [10803] reset query
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
$query->select('*');
|
$query->select('*');
|
||||||
$query->from($db->quoteName('#__sermondistributor_series'));
|
$query->from($db->quoteName('#__sermondistributor_series'));
|
||||||
@ -332,24 +337,24 @@ class SermondistributorModelSeries_list extends JModelList
|
|||||||
$db->execute();
|
$db->execute();
|
||||||
if ($db->getNumRows())
|
if ($db->getNumRows())
|
||||||
{
|
{
|
||||||
// [10567] Get Yesterdays date
|
// [10811] Get Yesterdays date
|
||||||
$date = JFactory::getDate()->modify($time)->toSql();
|
$date = JFactory::getDate()->modify($time)->toSql();
|
||||||
// [10569] reset query
|
// [10813] reset query
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [10571] Fields to update.
|
// [10815] Fields to update.
|
||||||
$fields = array(
|
$fields = array(
|
||||||
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
||||||
$db->quoteName('checked_out') . '=0'
|
$db->quoteName('checked_out') . '=0'
|
||||||
);
|
);
|
||||||
|
|
||||||
// [10576] Conditions for which records should be updated.
|
// [10820] Conditions for which records should be updated.
|
||||||
$conditions = array(
|
$conditions = array(
|
||||||
$db->quoteName('checked_out') . '!=0',
|
$db->quoteName('checked_out') . '!=0',
|
||||||
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
||||||
);
|
);
|
||||||
|
|
||||||
// [10581] Check table
|
// [10825] Check table
|
||||||
$query->update($db->quoteName('#__sermondistributor_series'))->set($fields)->where($conditions);
|
$query->update($db->quoteName('#__sermondistributor_series'))->set($fields)->where($conditions);
|
||||||
|
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage sermon.php
|
@subpackage sermon.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -92,13 +97,13 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
|
|
||||||
if (!empty($item->local_files))
|
if (!empty($item->local_files))
|
||||||
{
|
{
|
||||||
// [3996] JSON Decode local_files.
|
// [4211] JSON Decode local_files.
|
||||||
$item->local_files = json_decode($item->local_files);
|
$item->local_files = json_decode($item->local_files);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($item->manual_files))
|
if (!empty($item->manual_files))
|
||||||
{
|
{
|
||||||
// [3996] JSON Decode manual_files.
|
// [4211] JSON Decode manual_files.
|
||||||
$item->manual_files = json_decode($item->manual_files);
|
$item->manual_files = json_decode($item->manual_files);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,7 +113,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
$item->tags->getTagIds($item->id, 'com_sermondistributor.sermon');
|
$item->tags->getTagIds($item->id, 'com_sermondistributor.sermon');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->sermonqkhc = $item->id;
|
$this->sermonhnee = $item->id;
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
@ -118,76 +123,76 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
*
|
*
|
||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getZgfstastics()
|
public function getQfostastics()
|
||||||
{
|
{
|
||||||
// [6945] Get the user object.
|
// [7185] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [6947] Create a new query object.
|
// [7187] Create a new query object.
|
||||||
$db = JFactory::getDBO();
|
$db = JFactory::getDBO();
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [6950] Select some fields
|
// [7190] Select some fields
|
||||||
$query->select('a.*');
|
$query->select('a.*');
|
||||||
|
|
||||||
// [6957] From the sermondistributor_statistic table
|
// [7197] From the sermondistributor_statistic table
|
||||||
$query->from($db->quoteName('#__sermondistributor_statistic', 'a'));
|
$query->from($db->quoteName('#__sermondistributor_statistic', 'a'));
|
||||||
|
|
||||||
// [7550] From the sermondistributor_sermon table.
|
// [7790] From the sermondistributor_sermon table.
|
||||||
$query->select($db->quoteName('g.name','sermon_name'));
|
$query->select($db->quoteName('g.name','sermon_name'));
|
||||||
$query->join('LEFT', $db->quoteName('#__sermondistributor_sermon', 'g') . ' ON (' . $db->quoteName('a.sermon') . ' = ' . $db->quoteName('g.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__sermondistributor_sermon', 'g') . ' ON (' . $db->quoteName('a.sermon') . ' = ' . $db->quoteName('g.id') . ')');
|
||||||
|
|
||||||
// [7550] From the sermondistributor_preacher table.
|
// [7790] From the sermondistributor_preacher table.
|
||||||
$query->select($db->quoteName('h.name','preacher_name'));
|
$query->select($db->quoteName('h.name','preacher_name'));
|
||||||
$query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'h') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('h.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'h') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('h.id') . ')');
|
||||||
|
|
||||||
// [7550] From the sermondistributor_series table.
|
// [7790] From the sermondistributor_series table.
|
||||||
$query->select($db->quoteName('i.name','series_name'));
|
$query->select($db->quoteName('i.name','series_name'));
|
||||||
$query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'i') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('i.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'i') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('i.id') . ')');
|
||||||
|
|
||||||
// [6973] Filter by sermonqkhc global.
|
// [7213] Filter by sermonhnee global.
|
||||||
$sermonqkhc = $this->sermonqkhc;
|
$sermonhnee = $this->sermonhnee;
|
||||||
if (is_numeric($sermonqkhc ))
|
if (is_numeric($sermonhnee ))
|
||||||
{
|
{
|
||||||
$query->where('a.sermon = ' . (int) $sermonqkhc );
|
$query->where('a.sermon = ' . (int) $sermonhnee );
|
||||||
}
|
}
|
||||||
elseif (is_string($sermonqkhc))
|
elseif (is_string($sermonhnee))
|
||||||
{
|
{
|
||||||
$query->where('a.sermon = ' . $db->quote($sermonqkhc));
|
$query->where('a.sermon = ' . $db->quote($sermonhnee));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$query->where('a.sermon = -5');
|
$query->where('a.sermon = -5');
|
||||||
}
|
}
|
||||||
|
|
||||||
// [6990] Join over the asset groups.
|
// [7230] Join over the asset groups.
|
||||||
$query->select('ag.title AS access_level');
|
$query->select('ag.title AS access_level');
|
||||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||||
// [6993] Filter by access level.
|
// [7233] Filter by access level.
|
||||||
if ($access = $this->getState('filter.access'))
|
if ($access = $this->getState('filter.access'))
|
||||||
{
|
{
|
||||||
$query->where('a.access = ' . (int) $access);
|
$query->where('a.access = ' . (int) $access);
|
||||||
}
|
}
|
||||||
// [6998] Implement View Level Access
|
// [7238] Implement View Level Access
|
||||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||||
$query->where('a.access IN (' . $groups . ')');
|
$query->where('a.access IN (' . $groups . ')');
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7005] Order the results by ordering
|
// [7245] Order the results by ordering
|
||||||
$query->order('a.ordering ASC');
|
$query->order('a.ordering ASC');
|
||||||
|
|
||||||
// [7007] Load the items
|
// [7247] Load the items
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
$db->execute();
|
$db->execute();
|
||||||
if ($db->getNumRows())
|
if ($db->getNumRows())
|
||||||
{
|
{
|
||||||
$items = $db->loadObjectList();
|
$items = $db->loadObjectList();
|
||||||
|
|
||||||
// [10611] set values to display correctly.
|
// [10855] set values to display correctly.
|
||||||
if (SermondistributorHelper::checkArray($items))
|
if (SermondistributorHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// [10614] get user object.
|
// [10858] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
@ -216,7 +221,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function getForm($data = array(), $loadData = true)
|
public function getForm($data = array(), $loadData = true)
|
||||||
{ // [9566] Get the form.
|
{ // [9806] Get the form.
|
||||||
$form = $this->loadForm('com_sermondistributor.sermon', 'sermon', array('control' => 'jform', 'load_data' => $loadData));
|
$form = $this->loadForm('com_sermondistributor.sermon', 'sermon', array('control' => 'jform', 'load_data' => $loadData));
|
||||||
|
|
||||||
if (empty($form))
|
if (empty($form))
|
||||||
@ -226,17 +231,17 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
|
|
||||||
$jinput = JFactory::getApplication()->input;
|
$jinput = JFactory::getApplication()->input;
|
||||||
|
|
||||||
// [9593] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
|
// [9833] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
|
||||||
if ($jinput->get('a_id'))
|
if ($jinput->get('a_id'))
|
||||||
{
|
{
|
||||||
$id = $jinput->get('a_id', 0, 'INT');
|
$id = $jinput->get('a_id', 0, 'INT');
|
||||||
}
|
}
|
||||||
// [9598] The back end uses id so we use that the rest of the time and set it to 0 by default.
|
// [9838] The back end uses id so we use that the rest of the time and set it to 0 by default.
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$id = $jinput->get('id', 0, 'INT');
|
$id = $jinput->get('id', 0, 'INT');
|
||||||
}
|
}
|
||||||
// [9603] Determine correct permissions to check.
|
// [9843] Determine correct permissions to check.
|
||||||
if ($this->getState('sermon.id'))
|
if ($this->getState('sermon.id'))
|
||||||
{
|
{
|
||||||
$id = $this->getState('sermon.id');
|
$id = $this->getState('sermon.id');
|
||||||
@ -244,56 +249,56 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
$catid = 0;
|
$catid = 0;
|
||||||
if (isset($this->getItem($id)->catid))
|
if (isset($this->getItem($id)->catid))
|
||||||
{
|
{
|
||||||
// [9610] set catagory id
|
// [9850] set catagory id
|
||||||
$catid = $this->getItem($id)->catid;
|
$catid = $this->getItem($id)->catid;
|
||||||
|
|
||||||
// [9612] Existing record. Can only edit in selected categories.
|
// [9852] Existing record. Can only edit in selected categories.
|
||||||
$form->setFieldAttribute('catid', 'action', 'core.edit');
|
$form->setFieldAttribute('catid', 'action', 'core.edit');
|
||||||
|
|
||||||
// [9614] Existing record. Can only edit own items in selected categories.
|
// [9854] Existing record. Can only edit own items in selected categories.
|
||||||
$form->setFieldAttribute('catid', 'action', 'core.edit.own');
|
$form->setFieldAttribute('catid', 'action', 'core.edit.own');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// [9620] New record. Can only create in selected categories.
|
// [9860] New record. Can only create in selected categories.
|
||||||
$form->setFieldAttribute('catid', 'action', 'core.create');
|
$form->setFieldAttribute('catid', 'action', 'core.create');
|
||||||
}
|
}
|
||||||
|
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
// [9624] Check for existing item.
|
// [9864] Check for existing item.
|
||||||
// [9625] Modify the form based on Edit State access controls.
|
// [9865] Modify the form based on Edit State access controls.
|
||||||
if ($id != 0 && (!$user->authorise('sermon.edit.state', 'com_sermondistributor.sermon.' . (int) $id))
|
if ($id != 0 && (!$user->authorise('sermon.edit.state', 'com_sermondistributor.sermon.' . (int) $id))
|
||||||
|| (isset($catid) && $catid != 0 && !$user->authorise('core.edit.state', 'com_sermondistributor.sermons.category.' . (int) $catid))
|
|| (isset($catid) && $catid != 0 && !$user->authorise('core.edit.state', 'com_sermondistributor.sermons.category.' . (int) $catid))
|
||||||
|| ($id == 0 && !$user->authorise('sermon.edit.state', 'com_sermondistributor')))
|
|| ($id == 0 && !$user->authorise('sermon.edit.state', 'com_sermondistributor')))
|
||||||
{
|
{
|
||||||
// [9640] Disable fields for display.
|
// [9880] Disable fields for display.
|
||||||
$form->setFieldAttribute('ordering', 'disabled', 'true');
|
$form->setFieldAttribute('ordering', 'disabled', 'true');
|
||||||
$form->setFieldAttribute('published', 'disabled', 'true');
|
$form->setFieldAttribute('published', 'disabled', 'true');
|
||||||
|
|
||||||
// [9643] Disable fields while saving.
|
// [9883] Disable fields while saving.
|
||||||
$form->setFieldAttribute('ordering', 'filter', 'unset');
|
$form->setFieldAttribute('ordering', 'filter', 'unset');
|
||||||
$form->setFieldAttribute('published', 'filter', 'unset');
|
$form->setFieldAttribute('published', 'filter', 'unset');
|
||||||
}
|
}
|
||||||
// [9684] Modify the form based on Edit Creaded By access controls.
|
// [9924] Modify the form based on Edit Creaded By access controls.
|
||||||
if ($id != 0 && (!$user->authorise('sermon.edit.created_by', 'com_sermondistributor.sermon.' . (int) $id))
|
if ($id != 0 && (!$user->authorise('sermon.edit.created_by', 'com_sermondistributor.sermon.' . (int) $id))
|
||||||
|| ($id == 0 && !$user->authorise('sermon.edit.created_by', 'com_sermondistributor')))
|
|| ($id == 0 && !$user->authorise('sermon.edit.created_by', 'com_sermondistributor')))
|
||||||
{
|
{
|
||||||
// [9696] Disable fields for display.
|
// [9936] Disable fields for display.
|
||||||
$form->setFieldAttribute('created_by', 'disabled', 'true');
|
$form->setFieldAttribute('created_by', 'disabled', 'true');
|
||||||
// [9698] Disable fields for display.
|
// [9938] Disable fields for display.
|
||||||
$form->setFieldAttribute('created_by', 'readonly', 'true');
|
$form->setFieldAttribute('created_by', 'readonly', 'true');
|
||||||
// [9700] Disable fields while saving.
|
// [9940] Disable fields while saving.
|
||||||
$form->setFieldAttribute('created_by', 'filter', 'unset');
|
$form->setFieldAttribute('created_by', 'filter', 'unset');
|
||||||
}
|
}
|
||||||
// [9703] Modify the form based on Edit Creaded Date access controls.
|
// [9943] Modify the form based on Edit Creaded Date access controls.
|
||||||
if ($id != 0 && (!$user->authorise('sermon.edit.created', 'com_sermondistributor.sermon.' . (int) $id))
|
if ($id != 0 && (!$user->authorise('sermon.edit.created', 'com_sermondistributor.sermon.' . (int) $id))
|
||||||
|| ($id == 0 && !$user->authorise('sermon.edit.created', 'com_sermondistributor')))
|
|| ($id == 0 && !$user->authorise('sermon.edit.created', 'com_sermondistributor')))
|
||||||
{
|
{
|
||||||
// [9715] Disable fields for display.
|
// [9955] Disable fields for display.
|
||||||
$form->setFieldAttribute('created', 'disabled', 'true');
|
$form->setFieldAttribute('created', 'disabled', 'true');
|
||||||
// [9717] Disable fields while saving.
|
// [9957] Disable fields while saving.
|
||||||
$form->setFieldAttribute('created', 'filter', 'unset');
|
$form->setFieldAttribute('created', 'filter', 'unset');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -333,7 +338,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
|
|
||||||
if ($allow)
|
if ($allow)
|
||||||
{
|
{
|
||||||
// [9838] The record has been set. Check the record permissions.
|
// [10078] The record has been set. Check the record permissions.
|
||||||
return $user->authorise('sermon.delete', 'com_sermondistributor.sermon.' . (int) $record->id);
|
return $user->authorise('sermon.delete', 'com_sermondistributor.sermon.' . (int) $record->id);
|
||||||
}
|
}
|
||||||
return $allow;
|
return $allow;
|
||||||
@ -357,14 +362,14 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
|
|
||||||
if ($recordId)
|
if ($recordId)
|
||||||
{
|
{
|
||||||
// [9911] The record has been set. Check the record permissions.
|
// [10151] The record has been set. Check the record permissions.
|
||||||
$permission = $user->authorise('sermon.edit.state', 'com_sermondistributor.sermon.' . (int) $recordId);
|
$permission = $user->authorise('sermon.edit.state', 'com_sermondistributor.sermon.' . (int) $recordId);
|
||||||
if (!$permission && !is_null($permission))
|
if (!$permission && !is_null($permission))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [9927] Check against the category.
|
// [10167] Check against the category.
|
||||||
if (!empty($record->catid))
|
if (!empty($record->catid))
|
||||||
{
|
{
|
||||||
$catpermission = $user->authorise('core.edit.state', 'com_sermondistributor.sermons.category.' . (int) $record->catid);
|
$catpermission = $user->authorise('core.edit.state', 'com_sermondistributor.sermons.category.' . (int) $record->catid);
|
||||||
@ -373,7 +378,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [9938] In the absense of better information, revert to the component permissions.
|
// [10178] In the absense of better information, revert to the component permissions.
|
||||||
return $user->authorise('sermon.edit.state', 'com_sermondistributor');
|
return $user->authorise('sermon.edit.state', 'com_sermondistributor');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -388,7 +393,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
*/
|
*/
|
||||||
protected function allowEdit($data = array(), $key = 'id')
|
protected function allowEdit($data = array(), $key = 'id')
|
||||||
{
|
{
|
||||||
// [9779] Check specific edit permission then general edit permission.
|
// [10019] Check specific edit permission then general edit permission.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
return $user->authorise('sermon.edit', 'com_sermondistributor.sermon.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('sermon.edit', 'com_sermondistributor');
|
return $user->authorise('sermon.edit', 'com_sermondistributor.sermon.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('sermon.edit', 'com_sermondistributor');
|
||||||
@ -487,20 +492,20 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
*/
|
*/
|
||||||
public function validate($form, $data, $group = null)
|
public function validate($form, $data, $group = null)
|
||||||
{
|
{
|
||||||
// [8770] check if the not_required field is set
|
// [9010] check if the not_required field is set
|
||||||
if (SermondistributorHelper::checkString($data['not_required']))
|
if (SermondistributorHelper::checkString($data['not_required']))
|
||||||
{
|
{
|
||||||
$requiredFields = (array) explode(',',(string) $data['not_required']);
|
$requiredFields = (array) explode(',',(string) $data['not_required']);
|
||||||
$requiredFields = array_unique($requiredFields);
|
$requiredFields = array_unique($requiredFields);
|
||||||
// [8775] now change the required field attributes value
|
// [9015] now change the required field attributes value
|
||||||
foreach ($requiredFields as $requiredField)
|
foreach ($requiredFields as $requiredField)
|
||||||
{
|
{
|
||||||
// [8778] make sure there is a string value
|
// [9018] make sure there is a string value
|
||||||
if (SermondistributorHelper::checkString($requiredField))
|
if (SermondistributorHelper::checkString($requiredField))
|
||||||
{
|
{
|
||||||
// [8781] change to false
|
// [9021] change to false
|
||||||
$form->setFieldAttribute($requiredField, 'required', 'false');
|
$form->setFieldAttribute($requiredField, 'required', 'false');
|
||||||
// [8783] also clear the data set
|
// [9023] also clear the data set
|
||||||
$data[$requiredField] = '';
|
$data[$requiredField] = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -520,6 +525,25 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to delete one or more records.
|
||||||
|
*
|
||||||
|
* @param array &$pks An array of record primary keys.
|
||||||
|
*
|
||||||
|
* @return boolean True if successful, false if an error occurs.
|
||||||
|
*
|
||||||
|
* @since 12.2
|
||||||
|
*/
|
||||||
|
public function delete(&$pks)
|
||||||
|
{
|
||||||
|
if (!parent::delete($pks))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to perform batch operations on an item or a set of items.
|
* Method to perform batch operations on an item or a set of items.
|
||||||
*
|
*
|
||||||
@ -631,7 +655,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
{
|
{
|
||||||
if (empty($this->batchSet))
|
if (empty($this->batchSet))
|
||||||
{
|
{
|
||||||
// [4932] Set some needed variables.
|
// [5167] Set some needed variables.
|
||||||
$this->user = JFactory::getUser();
|
$this->user = JFactory::getUser();
|
||||||
$this->table = $this->getTable();
|
$this->table = $this->getTable();
|
||||||
$this->tableClassName = get_class($this->table);
|
$this->tableClassName = get_class($this->table);
|
||||||
@ -645,12 +669,12 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4952] get list of uniqe fields
|
// [5187] get list of uniqe fields
|
||||||
$uniqeFields = $this->getUniqeFields();
|
$uniqeFields = $this->getUniqeFields();
|
||||||
// [4954] remove move_copy from array
|
// [5189] remove move_copy from array
|
||||||
unset($values['move_copy']);
|
unset($values['move_copy']);
|
||||||
|
|
||||||
// [4957] make sure published is set
|
// [5192] make sure published is set
|
||||||
if (!isset($values['published']))
|
if (!isset($values['published']))
|
||||||
{
|
{
|
||||||
$values['published'] = 0;
|
$values['published'] = 0;
|
||||||
@ -666,7 +690,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
}
|
}
|
||||||
elseif (isset($values['category']) && (int) $values['category'] > 0)
|
elseif (isset($values['category']) && (int) $values['category'] > 0)
|
||||||
{
|
{
|
||||||
// [4982] move the category value to correct field name
|
// [5217] move the category value to correct field name
|
||||||
$values['catid'] = $values['category'];
|
$values['catid'] = $values['category'];
|
||||||
unset($values['category']);
|
unset($values['category']);
|
||||||
}
|
}
|
||||||
@ -677,21 +701,21 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
|
|
||||||
$newIds = array();
|
$newIds = array();
|
||||||
|
|
||||||
// [4994] Parent exists so let's proceed
|
// [5229] Parent exists so let's proceed
|
||||||
while (!empty($pks))
|
while (!empty($pks))
|
||||||
{
|
{
|
||||||
// [4997] Pop the first ID off the stack
|
// [5232] Pop the first ID off the stack
|
||||||
$pk = array_shift($pks);
|
$pk = array_shift($pks);
|
||||||
|
|
||||||
$this->table->reset();
|
$this->table->reset();
|
||||||
|
|
||||||
// [5002] only allow copy if user may edit this item.
|
// [5237] only allow copy if user may edit this item.
|
||||||
|
|
||||||
if (!$this->user->authorise('sermon.edit', $contexts[$pk]))
|
if (!$this->user->authorise('sermon.edit', $contexts[$pk]))
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
// [5012] Not fatal error
|
// [5247] Not fatal error
|
||||||
|
|
||||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||||
|
|
||||||
@ -699,19 +723,19 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5017] Check that the row actually exists
|
// [5252] Check that the row actually exists
|
||||||
if (!$this->table->load($pk))
|
if (!$this->table->load($pk))
|
||||||
{
|
{
|
||||||
if ($error = $this->table->getError())
|
if ($error = $this->table->getError())
|
||||||
{
|
{
|
||||||
// [5022] Fatal error
|
// [5257] Fatal error
|
||||||
$this->setError($error);
|
$this->setError($error);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// [5029] Not fatal error
|
// [5264] Not fatal error
|
||||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -726,7 +750,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
list($this->table->name, $this->table->alias) = $this->generateNewTitle($this->table->catid, $this->table->alias, $this->table->name);
|
list($this->table->name, $this->table->alias) = $this->generateNewTitle($this->table->catid, $this->table->alias, $this->table->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5065] insert all set values
|
// [5300] insert all set values
|
||||||
if (SermondistributorHelper::checkArray($values))
|
if (SermondistributorHelper::checkArray($values))
|
||||||
{
|
{
|
||||||
foreach ($values as $key => $value)
|
foreach ($values as $key => $value)
|
||||||
@ -738,7 +762,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5077] update all uniqe fields
|
// [5312] update all uniqe fields
|
||||||
if (SermondistributorHelper::checkArray($uniqeFields))
|
if (SermondistributorHelper::checkArray($uniqeFields))
|
||||||
{
|
{
|
||||||
foreach ($uniqeFields as $uniqeField)
|
foreach ($uniqeFields as $uniqeField)
|
||||||
@ -747,13 +771,13 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5086] Reset the ID because we are making a copy
|
// [5321] Reset the ID because we are making a copy
|
||||||
$this->table->id = 0;
|
$this->table->id = 0;
|
||||||
|
|
||||||
// [5089] TODO: Deal with ordering?
|
// [5324] TODO: Deal with ordering?
|
||||||
// [5090] $this->table->ordering = 1;
|
// [5325] $this->table->ordering = 1;
|
||||||
|
|
||||||
// [5092] Check the row.
|
// [5327] Check the row.
|
||||||
if (!$this->table->check())
|
if (!$this->table->check())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -766,7 +790,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5105] Store the row.
|
// [5340] Store the row.
|
||||||
if (!$this->table->store())
|
if (!$this->table->store())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -774,14 +798,14 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5113] Get the new item ID
|
// [5348] Get the new item ID
|
||||||
$newId = $this->table->get('id');
|
$newId = $this->table->get('id');
|
||||||
|
|
||||||
// [5116] Add the new ID to the array
|
// [5351] Add the new ID to the array
|
||||||
$newIds[$pk] = $newId;
|
$newIds[$pk] = $newId;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5120] Clean the cache
|
// [5355] Clean the cache
|
||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
@ -802,7 +826,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
{
|
{
|
||||||
if (empty($this->batchSet))
|
if (empty($this->batchSet))
|
||||||
{
|
{
|
||||||
// [4734] Set some needed variables.
|
// [4969] Set some needed variables.
|
||||||
$this->user = JFactory::getUser();
|
$this->user = JFactory::getUser();
|
||||||
$this->table = $this->getTable();
|
$this->table = $this->getTable();
|
||||||
$this->tableClassName = get_class($this->table);
|
$this->tableClassName = get_class($this->table);
|
||||||
@ -817,12 +841,12 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4756] make sure published only updates if user has the permission.
|
// [4991] make sure published only updates if user has the permission.
|
||||||
if (isset($values['published']) && !$this->canDo->get('sermon.edit.state'))
|
if (isset($values['published']) && !$this->canDo->get('sermon.edit.state'))
|
||||||
{
|
{
|
||||||
unset($values['published']);
|
unset($values['published']);
|
||||||
}
|
}
|
||||||
// [4769] remove move_copy from array
|
// [5004] remove move_copy from array
|
||||||
unset($values['move_copy']);
|
unset($values['move_copy']);
|
||||||
|
|
||||||
if (isset($values['category']) && (int) $values['category'] > 0 && !static::checkCategoryId($values['category']))
|
if (isset($values['category']) && (int) $values['category'] > 0 && !static::checkCategoryId($values['category']))
|
||||||
@ -831,7 +855,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
}
|
}
|
||||||
elseif (isset($values['category']) && (int) $values['category'] > 0)
|
elseif (isset($values['category']) && (int) $values['category'] > 0)
|
||||||
{
|
{
|
||||||
// [4780] move the category value to correct field name
|
// [5015] move the category value to correct field name
|
||||||
$values['catid'] = $values['category'];
|
$values['catid'] = $values['category'];
|
||||||
unset($values['category']);
|
unset($values['category']);
|
||||||
}
|
}
|
||||||
@ -841,7 +865,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// [4790] Parent exists so we proceed
|
// [5025] Parent exists so we proceed
|
||||||
foreach ($pks as $pk)
|
foreach ($pks as $pk)
|
||||||
{
|
{
|
||||||
if (!$this->user->authorise('sermon.edit', $contexts[$pk]))
|
if (!$this->user->authorise('sermon.edit', $contexts[$pk]))
|
||||||
@ -851,30 +875,30 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4807] Check that the row actually exists
|
// [5042] Check that the row actually exists
|
||||||
if (!$this->table->load($pk))
|
if (!$this->table->load($pk))
|
||||||
{
|
{
|
||||||
if ($error = $this->table->getError())
|
if ($error = $this->table->getError())
|
||||||
{
|
{
|
||||||
// [4812] Fatal error
|
// [5047] Fatal error
|
||||||
$this->setError($error);
|
$this->setError($error);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// [4819] Not fatal error
|
// [5054] Not fatal error
|
||||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4825] insert all set values.
|
// [5060] insert all set values.
|
||||||
if (SermondistributorHelper::checkArray($values))
|
if (SermondistributorHelper::checkArray($values))
|
||||||
{
|
{
|
||||||
foreach ($values as $key => $value)
|
foreach ($values as $key => $value)
|
||||||
{
|
{
|
||||||
// [4830] Do special action for access.
|
// [5065] Do special action for access.
|
||||||
if ('access' == $key && strlen($value) > 0)
|
if ('access' == $key && strlen($value) > 0)
|
||||||
{
|
{
|
||||||
$this->table->$key = $value;
|
$this->table->$key = $value;
|
||||||
@ -887,7 +911,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// [4842] Check the row.
|
// [5077] Check the row.
|
||||||
if (!$this->table->check())
|
if (!$this->table->check())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -900,7 +924,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4855] Store the row.
|
// [5090] Store the row.
|
||||||
if (!$this->table->store())
|
if (!$this->table->store())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -909,7 +933,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4864] Clean the cache
|
// [5099] Clean the cache
|
||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -939,13 +963,13 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4106] Set the local_files string to JSON string.
|
// [4321] Set the local_files string to JSON string.
|
||||||
if (isset($data['local_files']))
|
if (isset($data['local_files']))
|
||||||
{
|
{
|
||||||
$data['local_files'] = (string) json_encode($data['local_files']);
|
$data['local_files'] = (string) json_encode($data['local_files']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4106] Set the manual_files string to JSON string.
|
// [4321] Set the manual_files string to JSON string.
|
||||||
if (isset($data['manual_files']))
|
if (isset($data['manual_files']))
|
||||||
{
|
{
|
||||||
$data['manual_files'] = (string) json_encode($data['manual_files']);
|
$data['manual_files'] = (string) json_encode($data['manual_files']);
|
||||||
@ -959,7 +983,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
$data['params'] = (string) $params;
|
$data['params'] = (string) $params;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5146] Alter the name for save as copy
|
// [5381] Alter the name for save as copy
|
||||||
if ($input->get('task') == 'save2copy')
|
if ($input->get('task') == 'save2copy')
|
||||||
{
|
{
|
||||||
$origTable = clone $this->getTable();
|
$origTable = clone $this->getTable();
|
||||||
@ -982,7 +1006,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
$data['published'] = 0;
|
$data['published'] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5173] Automatic handling of alias for empty fields
|
// [5408] Automatic handling of alias for empty fields
|
||||||
if (in_array($input->get('task'), array('apply', 'save', 'save2new')) && (int) $input->get('id') == 0)
|
if (in_array($input->get('task'), array('apply', 'save', 'save2new')) && (int) $input->get('id') == 0)
|
||||||
{
|
{
|
||||||
if ($data['alias'] == null)
|
if ($data['alias'] == null)
|
||||||
@ -1013,10 +1037,10 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5212] Alter the uniqe field for save as copy
|
// [5447] Alter the uniqe field for save as copy
|
||||||
if ($input->get('task') == 'save2copy')
|
if ($input->get('task') == 'save2copy')
|
||||||
{
|
{
|
||||||
// [5215] Automatic handling of other uniqe fields
|
// [5450] Automatic handling of other uniqe fields
|
||||||
$uniqeFields = $this->getUniqeFields();
|
$uniqeFields = $this->getUniqeFields();
|
||||||
if (SermondistributorHelper::checkArray($uniqeFields))
|
if (SermondistributorHelper::checkArray($uniqeFields))
|
||||||
{
|
{
|
||||||
@ -1070,7 +1094,7 @@ class SermondistributorModelSermon extends JModelAdmin
|
|||||||
protected function _generateNewTitle($alias, $title)
|
protected function _generateNewTitle($alias, $title)
|
||||||
{
|
{
|
||||||
|
|
||||||
// [5246] Alter the title & alias
|
// [5481] Alter the title & alias
|
||||||
$table = $this->getTable();
|
$table = $this->getTable();
|
||||||
|
|
||||||
while ($table->load(array('alias' => $alias)))
|
while ($table->load(array('alias' => $alias)))
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage sermondistributor.php
|
@subpackage sermondistributor.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -40,7 +45,7 @@ class SermondistributorModelSermondistributor extends JModelList
|
|||||||
$viewGroups = array(
|
$viewGroups = array(
|
||||||
'main' => array('png.preacher.add', 'png.preachers', 'png.sermon.add', 'png.sermons', 'png.sermons.catid', 'png.series.add', 'png.series_list', 'png.statistics', 'png.help_documents')
|
'main' => array('png.preacher.add', 'png.preachers', 'png.sermon.add', 'png.sermons', 'png.sermons.catid', 'png.series.add', 'png.series_list', 'png.statistics', 'png.help_documents')
|
||||||
);
|
);
|
||||||
// [12182] view access array
|
// [12426] view access array
|
||||||
$viewAccess = array(
|
$viewAccess = array(
|
||||||
'preacher.create' => 'preacher.create',
|
'preacher.create' => 'preacher.create',
|
||||||
'preachers.access' => 'preacher.access',
|
'preachers.access' => 'preacher.access',
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage sermons.php
|
@subpackage sermons.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -124,16 +129,16 @@ class SermondistributorModelSermons extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// [10536] check in items
|
// [10780] check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
// load parent items
|
// load parent items
|
||||||
$items = parent::getItems();
|
$items = parent::getItems();
|
||||||
|
|
||||||
// [10611] set values to display correctly.
|
// [10855] set values to display correctly.
|
||||||
if (SermondistributorHelper::checkArray($items))
|
if (SermondistributorHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// [10614] get user object.
|
// [10858] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
@ -147,14 +152,14 @@ class SermondistributorModelSermons extends JModelList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [10877] set selection value to a translatable value
|
// [11121] set selection value to a translatable value
|
||||||
if (SermondistributorHelper::checkArray($items))
|
if (SermondistributorHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
// [10884] convert link_type
|
// [11128] convert link_type
|
||||||
$item->link_type = $this->selectionTranslation($item->link_type, 'link_type');
|
$item->link_type = $this->selectionTranslation($item->link_type, 'link_type');
|
||||||
// [10884] convert source
|
// [11128] convert source
|
||||||
$item->source = $this->selectionTranslation($item->source, 'source');
|
$item->source = $this->selectionTranslation($item->source, 'source');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -171,20 +176,20 @@ class SermondistributorModelSermons extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function selectionTranslation($value,$name)
|
public function selectionTranslation($value,$name)
|
||||||
{
|
{
|
||||||
// [10910] Array of link_type language strings
|
// [11154] Array of link_type language strings
|
||||||
if ($name == 'link_type')
|
if ($name == 'link_type')
|
||||||
{
|
{
|
||||||
$link_typeArray = array(
|
$link_typeArray = array(
|
||||||
1 => 'COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED',
|
1 => 'COM_SERMONDISTRIBUTOR_SERMON_ENCRYPTED',
|
||||||
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DIRECT'
|
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DIRECT'
|
||||||
);
|
);
|
||||||
// [10941] Now check if value is found in this array
|
// [11185] Now check if value is found in this array
|
||||||
if (isset($link_typeArray[$value]) && SermondistributorHelper::checkString($link_typeArray[$value]))
|
if (isset($link_typeArray[$value]) && SermondistributorHelper::checkString($link_typeArray[$value]))
|
||||||
{
|
{
|
||||||
return $link_typeArray[$value];
|
return $link_typeArray[$value];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [10910] Array of source language strings
|
// [11154] Array of source language strings
|
||||||
if ($name == 'source')
|
if ($name == 'source')
|
||||||
{
|
{
|
||||||
$sourceArray = array(
|
$sourceArray = array(
|
||||||
@ -193,7 +198,7 @@ class SermondistributorModelSermons extends JModelList
|
|||||||
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DROPBOX',
|
2 => 'COM_SERMONDISTRIBUTOR_SERMON_DROPBOX',
|
||||||
3 => 'COM_SERMONDISTRIBUTOR_SERMON_URL'
|
3 => 'COM_SERMONDISTRIBUTOR_SERMON_URL'
|
||||||
);
|
);
|
||||||
// [10941] Now check if value is found in this array
|
// [11185] Now check if value is found in this array
|
||||||
if (isset($sourceArray[$value]) && SermondistributorHelper::checkString($sourceArray[$value]))
|
if (isset($sourceArray[$value]) && SermondistributorHelper::checkString($sourceArray[$value]))
|
||||||
{
|
{
|
||||||
return $sourceArray[$value];
|
return $sourceArray[$value];
|
||||||
@ -209,29 +214,29 @@ class SermondistributorModelSermons extends JModelList
|
|||||||
*/
|
*/
|
||||||
protected function getListQuery()
|
protected function getListQuery()
|
||||||
{
|
{
|
||||||
// [7397] Get the user object.
|
// [7637] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [7399] Create a new query object.
|
// [7639] Create a new query object.
|
||||||
$db = JFactory::getDBO();
|
$db = JFactory::getDBO();
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [7402] Select some fields
|
// [7642] Select some fields
|
||||||
$query->select('a.*');
|
$query->select('a.*');
|
||||||
$query->select($db->quoteName('c.title','category_title'));
|
$query->select($db->quoteName('c.title','category_title'));
|
||||||
|
|
||||||
// [7409] From the sermondistributor_item table
|
// [7649] From the sermondistributor_item table
|
||||||
$query->from($db->quoteName('#__sermondistributor_sermon', 'a'));
|
$query->from($db->quoteName('#__sermondistributor_sermon', 'a'));
|
||||||
$query->join('LEFT', $db->quoteName('#__categories', 'c') . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('c.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__categories', 'c') . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('c.id') . ')');
|
||||||
|
|
||||||
// [7550] From the sermondistributor_preacher table.
|
// [7790] From the sermondistributor_preacher table.
|
||||||
$query->select($db->quoteName('g.name','preacher_name'));
|
$query->select($db->quoteName('g.name','preacher_name'));
|
||||||
$query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'g') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('g.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'g') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('g.id') . ')');
|
||||||
|
|
||||||
// [7550] From the sermondistributor_series table.
|
// [7790] From the sermondistributor_series table.
|
||||||
$query->select($db->quoteName('h.name','series_name'));
|
$query->select($db->quoteName('h.name','series_name'));
|
||||||
$query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'h') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('h.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'h') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('h.id') . ')');
|
||||||
|
|
||||||
// [7423] Filter by published state
|
// [7663] Filter by published state
|
||||||
$published = $this->getState('filter.published');
|
$published = $this->getState('filter.published');
|
||||||
if (is_numeric($published))
|
if (is_numeric($published))
|
||||||
{
|
{
|
||||||
@ -242,21 +247,21 @@ class SermondistributorModelSermons extends JModelList
|
|||||||
$query->where('(a.published = 0 OR a.published = 1)');
|
$query->where('(a.published = 0 OR a.published = 1)');
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7435] Join over the asset groups.
|
// [7675] Join over the asset groups.
|
||||||
$query->select('ag.title AS access_level');
|
$query->select('ag.title AS access_level');
|
||||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||||
// [7438] Filter by access level.
|
// [7678] Filter by access level.
|
||||||
if ($access = $this->getState('filter.access'))
|
if ($access = $this->getState('filter.access'))
|
||||||
{
|
{
|
||||||
$query->where('a.access = ' . (int) $access);
|
$query->where('a.access = ' . (int) $access);
|
||||||
}
|
}
|
||||||
// [7443] Implement View Level Access
|
// [7683] Implement View Level Access
|
||||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||||
$query->where('a.access IN (' . $groups . ')');
|
$query->where('a.access IN (' . $groups . ')');
|
||||||
}
|
}
|
||||||
// [7520] Filter by search.
|
// [7760] Filter by search.
|
||||||
$search = $this->getState('filter.search');
|
$search = $this->getState('filter.search');
|
||||||
if (!empty($search))
|
if (!empty($search))
|
||||||
{
|
{
|
||||||
@ -267,32 +272,32 @@ class SermondistributorModelSermons extends JModelList
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$search = $db->quote('%' . $db->escape($search, true) . '%');
|
$search = $db->quote('%' . $db->escape($search, true) . '%');
|
||||||
$query->where('(a.name LIKE '.$search.' OR a.preacher LIKE '.$search.' OR g.name LIKE '.$search.' OR a.series LIKE '.$search.' OR h.name LIKE '.$search.' OR a.short_description LIKE '.$search.' OR a.catid LIKE '.$search.' OR a.link_type LIKE '.$search.')');
|
$query->where('(a.name LIKE '.$search.' OR a.preacher LIKE '.$search.' OR g.name LIKE '.$search.' OR a.series LIKE '.$search.' OR h.name LIKE '.$search.' OR a.short_description LIKE '.$search.' OR a.catid LIKE '.$search.' OR a.link_type LIKE '.$search.' OR a.scripture LIKE '.$search.')');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7754] Filter by preacher.
|
// [7994] Filter by preacher.
|
||||||
if ($preacher = $this->getState('filter.preacher'))
|
if ($preacher = $this->getState('filter.preacher'))
|
||||||
{
|
{
|
||||||
$query->where('a.preacher = ' . $db->quote($db->escape($preacher, true)));
|
$query->where('a.preacher = ' . $db->quote($db->escape($preacher, true)));
|
||||||
}
|
}
|
||||||
// [7754] Filter by series.
|
// [7994] Filter by series.
|
||||||
if ($series = $this->getState('filter.series'))
|
if ($series = $this->getState('filter.series'))
|
||||||
{
|
{
|
||||||
$query->where('a.series = ' . $db->quote($db->escape($series, true)));
|
$query->where('a.series = ' . $db->quote($db->escape($series, true)));
|
||||||
}
|
}
|
||||||
// [7763] Filter by Link_type.
|
// [8003] Filter by Link_type.
|
||||||
if ($link_type = $this->getState('filter.link_type'))
|
if ($link_type = $this->getState('filter.link_type'))
|
||||||
{
|
{
|
||||||
$query->where('a.link_type = ' . $db->quote($db->escape($link_type, true)));
|
$query->where('a.link_type = ' . $db->quote($db->escape($link_type, true)));
|
||||||
}
|
}
|
||||||
// [7763] Filter by Source.
|
// [8003] Filter by Source.
|
||||||
if ($source = $this->getState('filter.source'))
|
if ($source = $this->getState('filter.source'))
|
||||||
{
|
{
|
||||||
$query->where('a.source = ' . $db->quote($db->escape($source, true)));
|
$query->where('a.source = ' . $db->quote($db->escape($source, true)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7457] Filter by a single or group of categories.
|
// [7697] Filter by a single or group of categories.
|
||||||
$baselevel = 1;
|
$baselevel = 1;
|
||||||
$categoryId = $this->getState('filter.category_id');
|
$categoryId = $this->getState('filter.category_id');
|
||||||
|
|
||||||
@ -314,7 +319,7 @@ class SermondistributorModelSermons extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// [7479] Add the list ordering clause.
|
// [7719] Add the list ordering clause.
|
||||||
$orderCol = $this->state->get('list.ordering', 'a.id');
|
$orderCol = $this->state->get('list.ordering', 'a.id');
|
||||||
$orderDirn = $this->state->get('list.direction', 'asc');
|
$orderDirn = $this->state->get('list.direction', 'asc');
|
||||||
if ($orderCol != '')
|
if ($orderCol != '')
|
||||||
@ -332,42 +337,42 @@ class SermondistributorModelSermons extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function getExportData($pks)
|
public function getExportData($pks)
|
||||||
{
|
{
|
||||||
// [7187] setup the query
|
// [7427] setup the query
|
||||||
if (SermondistributorHelper::checkArray($pks))
|
if (SermondistributorHelper::checkArray($pks))
|
||||||
{
|
{
|
||||||
// [7190] Get the user object.
|
// [7430] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [7192] Create a new query object.
|
// [7432] Create a new query object.
|
||||||
$db = JFactory::getDBO();
|
$db = JFactory::getDBO();
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [7195] Select some fields
|
// [7435] Select some fields
|
||||||
$query->select('a.*');
|
$query->select('a.*');
|
||||||
|
|
||||||
// [7197] From the sermondistributor_sermon table
|
// [7437] From the sermondistributor_sermon table
|
||||||
$query->from($db->quoteName('#__sermondistributor_sermon', 'a'));
|
$query->from($db->quoteName('#__sermondistributor_sermon', 'a'));
|
||||||
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
||||||
// [7207] Implement View Level Access
|
// [7447] Implement View Level Access
|
||||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||||
$query->where('a.access IN (' . $groups . ')');
|
$query->where('a.access IN (' . $groups . ')');
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7214] Order the results by ordering
|
// [7454] Order the results by ordering
|
||||||
$query->order('a.ordering ASC');
|
$query->order('a.ordering ASC');
|
||||||
|
|
||||||
// [7216] Load the items
|
// [7456] Load the items
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
$db->execute();
|
$db->execute();
|
||||||
if ($db->getNumRows())
|
if ($db->getNumRows())
|
||||||
{
|
{
|
||||||
$items = $db->loadObjectList();
|
$items = $db->loadObjectList();
|
||||||
|
|
||||||
// [10611] set values to display correctly.
|
// [10855] set values to display correctly.
|
||||||
if (SermondistributorHelper::checkArray($items))
|
if (SermondistributorHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// [10614] get user object.
|
// [10858] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
@ -378,13 +383,13 @@ class SermondistributorModelSermons extends JModelList
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [10824] unset the values we don't want exported.
|
// [11068] unset the values we don't want exported.
|
||||||
unset($item->asset_id);
|
unset($item->asset_id);
|
||||||
unset($item->checked_out);
|
unset($item->checked_out);
|
||||||
unset($item->checked_out_time);
|
unset($item->checked_out_time);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [10833] Add headers to items array.
|
// [11077] Add headers to items array.
|
||||||
$headers = $this->getExImPortHeaders();
|
$headers = $this->getExImPortHeaders();
|
||||||
if (SermondistributorHelper::checkObject($headers))
|
if (SermondistributorHelper::checkObject($headers))
|
||||||
{
|
{
|
||||||
@ -403,13 +408,13 @@ class SermondistributorModelSermons extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function getExImPortHeaders()
|
public function getExImPortHeaders()
|
||||||
{
|
{
|
||||||
// [7236] Get a db connection.
|
// [7476] Get a db connection.
|
||||||
$db = JFactory::getDbo();
|
$db = JFactory::getDbo();
|
||||||
// [7238] get the columns
|
// [7478] get the columns
|
||||||
$columns = $db->getTableColumns("#__sermondistributor_sermon");
|
$columns = $db->getTableColumns("#__sermondistributor_sermon");
|
||||||
if (SermondistributorHelper::checkArray($columns))
|
if (SermondistributorHelper::checkArray($columns))
|
||||||
{
|
{
|
||||||
// [7242] remove the headers you don't import/export.
|
// [7482] remove the headers you don't import/export.
|
||||||
unset($columns['asset_id']);
|
unset($columns['asset_id']);
|
||||||
unset($columns['checked_out']);
|
unset($columns['checked_out']);
|
||||||
unset($columns['checked_out_time']);
|
unset($columns['checked_out_time']);
|
||||||
@ -431,7 +436,7 @@ class SermondistributorModelSermons extends JModelList
|
|||||||
*/
|
*/
|
||||||
protected function getStoreId($id = '')
|
protected function getStoreId($id = '')
|
||||||
{
|
{
|
||||||
// [10159] Compile the store id.
|
// [10403] Compile the store id.
|
||||||
$id .= ':' . $this->getState('filter.id');
|
$id .= ':' . $this->getState('filter.id');
|
||||||
$id .= ':' . $this->getState('filter.search');
|
$id .= ':' . $this->getState('filter.search');
|
||||||
$id .= ':' . $this->getState('filter.published');
|
$id .= ':' . $this->getState('filter.published');
|
||||||
@ -459,15 +464,15 @@ class SermondistributorModelSermons extends JModelList
|
|||||||
*/
|
*/
|
||||||
protected function checkInNow()
|
protected function checkInNow()
|
||||||
{
|
{
|
||||||
// [10552] Get set check in time
|
// [10796] Get set check in time
|
||||||
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
|
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
|
||||||
|
|
||||||
if ($time)
|
if ($time)
|
||||||
{
|
{
|
||||||
|
|
||||||
// [10557] Get a db connection.
|
// [10801] Get a db connection.
|
||||||
$db = JFactory::getDbo();
|
$db = JFactory::getDbo();
|
||||||
// [10559] reset query
|
// [10803] reset query
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
$query->select('*');
|
$query->select('*');
|
||||||
$query->from($db->quoteName('#__sermondistributor_sermon'));
|
$query->from($db->quoteName('#__sermondistributor_sermon'));
|
||||||
@ -475,24 +480,24 @@ class SermondistributorModelSermons extends JModelList
|
|||||||
$db->execute();
|
$db->execute();
|
||||||
if ($db->getNumRows())
|
if ($db->getNumRows())
|
||||||
{
|
{
|
||||||
// [10567] Get Yesterdays date
|
// [10811] Get Yesterdays date
|
||||||
$date = JFactory::getDate()->modify($time)->toSql();
|
$date = JFactory::getDate()->modify($time)->toSql();
|
||||||
// [10569] reset query
|
// [10813] reset query
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [10571] Fields to update.
|
// [10815] Fields to update.
|
||||||
$fields = array(
|
$fields = array(
|
||||||
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
||||||
$db->quoteName('checked_out') . '=0'
|
$db->quoteName('checked_out') . '=0'
|
||||||
);
|
);
|
||||||
|
|
||||||
// [10576] Conditions for which records should be updated.
|
// [10820] Conditions for which records should be updated.
|
||||||
$conditions = array(
|
$conditions = array(
|
||||||
$db->quoteName('checked_out') . '!=0',
|
$db->quoteName('checked_out') . '!=0',
|
||||||
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
||||||
);
|
);
|
||||||
|
|
||||||
// [10581] Check table
|
// [10825] Check table
|
||||||
$query->update($db->quoteName('#__sermondistributor_sermon'))->set($fields)->where($conditions);
|
$query->update($db->quoteName('#__sermondistributor_sermon'))->set($fields)->where($conditions);
|
||||||
|
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage statistic.php
|
@subpackage statistic.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -111,7 +116,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function getForm($data = array(), $loadData = true)
|
public function getForm($data = array(), $loadData = true)
|
||||||
{ // [9566] Get the form.
|
{ // [9806] Get the form.
|
||||||
$form = $this->loadForm('com_sermondistributor.statistic', 'statistic', array('control' => 'jform', 'load_data' => $loadData));
|
$form = $this->loadForm('com_sermondistributor.statistic', 'statistic', array('control' => 'jform', 'load_data' => $loadData));
|
||||||
|
|
||||||
if (empty($form))
|
if (empty($form))
|
||||||
@ -121,12 +126,12 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
|
|
||||||
$jinput = JFactory::getApplication()->input;
|
$jinput = JFactory::getApplication()->input;
|
||||||
|
|
||||||
// [9651] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
|
// [9891] The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
|
||||||
if ($jinput->get('a_id'))
|
if ($jinput->get('a_id'))
|
||||||
{
|
{
|
||||||
$id = $jinput->get('a_id', 0, 'INT');
|
$id = $jinput->get('a_id', 0, 'INT');
|
||||||
}
|
}
|
||||||
// [9656] The back end uses id so we use that the rest of the time and set it to 0 by default.
|
// [9896] The back end uses id so we use that the rest of the time and set it to 0 by default.
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$id = $jinput->get('id', 0, 'INT');
|
$id = $jinput->get('id', 0, 'INT');
|
||||||
@ -134,36 +139,36 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
|
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
// [9662] Check for existing item.
|
// [9902] Check for existing item.
|
||||||
// [9663] Modify the form based on Edit State access controls.
|
// [9903] Modify the form based on Edit State access controls.
|
||||||
if ($id != 0 && (!$user->authorise('statistic.edit.state', 'com_sermondistributor.statistic.' . (int) $id))
|
if ($id != 0 && (!$user->authorise('statistic.edit.state', 'com_sermondistributor.statistic.' . (int) $id))
|
||||||
|| ($id == 0 && !$user->authorise('statistic.edit.state', 'com_sermondistributor')))
|
|| ($id == 0 && !$user->authorise('statistic.edit.state', 'com_sermondistributor')))
|
||||||
{
|
{
|
||||||
// [9676] Disable fields for display.
|
// [9916] Disable fields for display.
|
||||||
$form->setFieldAttribute('ordering', 'disabled', 'true');
|
$form->setFieldAttribute('ordering', 'disabled', 'true');
|
||||||
$form->setFieldAttribute('published', 'disabled', 'true');
|
$form->setFieldAttribute('published', 'disabled', 'true');
|
||||||
// [9679] Disable fields while saving.
|
// [9919] Disable fields while saving.
|
||||||
$form->setFieldAttribute('ordering', 'filter', 'unset');
|
$form->setFieldAttribute('ordering', 'filter', 'unset');
|
||||||
$form->setFieldAttribute('published', 'filter', 'unset');
|
$form->setFieldAttribute('published', 'filter', 'unset');
|
||||||
}
|
}
|
||||||
// [9684] Modify the form based on Edit Creaded By access controls.
|
// [9924] Modify the form based on Edit Creaded By access controls.
|
||||||
if ($id != 0 && (!$user->authorise('statistic.edit.created_by', 'com_sermondistributor.statistic.' . (int) $id))
|
if ($id != 0 && (!$user->authorise('statistic.edit.created_by', 'com_sermondistributor.statistic.' . (int) $id))
|
||||||
|| ($id == 0 && !$user->authorise('statistic.edit.created_by', 'com_sermondistributor')))
|
|| ($id == 0 && !$user->authorise('statistic.edit.created_by', 'com_sermondistributor')))
|
||||||
{
|
{
|
||||||
// [9696] Disable fields for display.
|
// [9936] Disable fields for display.
|
||||||
$form->setFieldAttribute('created_by', 'disabled', 'true');
|
$form->setFieldAttribute('created_by', 'disabled', 'true');
|
||||||
// [9698] Disable fields for display.
|
// [9938] Disable fields for display.
|
||||||
$form->setFieldAttribute('created_by', 'readonly', 'true');
|
$form->setFieldAttribute('created_by', 'readonly', 'true');
|
||||||
// [9700] Disable fields while saving.
|
// [9940] Disable fields while saving.
|
||||||
$form->setFieldAttribute('created_by', 'filter', 'unset');
|
$form->setFieldAttribute('created_by', 'filter', 'unset');
|
||||||
}
|
}
|
||||||
// [9703] Modify the form based on Edit Creaded Date access controls.
|
// [9943] Modify the form based on Edit Creaded Date access controls.
|
||||||
if ($id != 0 && (!$user->authorise('statistic.edit.created', 'com_sermondistributor.statistic.' . (int) $id))
|
if ($id != 0 && (!$user->authorise('statistic.edit.created', 'com_sermondistributor.statistic.' . (int) $id))
|
||||||
|| ($id == 0 && !$user->authorise('statistic.edit.created', 'com_sermondistributor')))
|
|| ($id == 0 && !$user->authorise('statistic.edit.created', 'com_sermondistributor')))
|
||||||
{
|
{
|
||||||
// [9715] Disable fields for display.
|
// [9955] Disable fields for display.
|
||||||
$form->setFieldAttribute('created', 'disabled', 'true');
|
$form->setFieldAttribute('created', 'disabled', 'true');
|
||||||
// [9717] Disable fields while saving.
|
// [9957] Disable fields while saving.
|
||||||
$form->setFieldAttribute('created', 'filter', 'unset');
|
$form->setFieldAttribute('created', 'filter', 'unset');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -199,7 +204,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [9867] The record has been set. Check the record permissions.
|
// [10107] The record has been set. Check the record permissions.
|
||||||
return $user->authorise('statistic.delete', 'com_sermondistributor.statistic.' . (int) $record->id);
|
return $user->authorise('statistic.delete', 'com_sermondistributor.statistic.' . (int) $record->id);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -221,14 +226,14 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
|
|
||||||
if ($recordId)
|
if ($recordId)
|
||||||
{
|
{
|
||||||
// [9954] The record has been set. Check the record permissions.
|
// [10194] The record has been set. Check the record permissions.
|
||||||
$permission = $user->authorise('statistic.edit.state', 'com_sermondistributor.statistic.' . (int) $recordId);
|
$permission = $user->authorise('statistic.edit.state', 'com_sermondistributor.statistic.' . (int) $recordId);
|
||||||
if (!$permission && !is_null($permission))
|
if (!$permission && !is_null($permission))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [9971] In the absense of better information, revert to the component permissions.
|
// [10211] In the absense of better information, revert to the component permissions.
|
||||||
return $user->authorise('statistic.edit.state', 'com_sermondistributor');
|
return $user->authorise('statistic.edit.state', 'com_sermondistributor');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -243,7 +248,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
*/
|
*/
|
||||||
protected function allowEdit($data = array(), $key = 'id')
|
protected function allowEdit($data = array(), $key = 'id')
|
||||||
{
|
{
|
||||||
// [9779] Check specific edit permission then general edit permission.
|
// [10019] Check specific edit permission then general edit permission.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
return $user->authorise('statistic.edit', 'com_sermondistributor.statistic.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('statistic.edit', 'com_sermondistributor');
|
return $user->authorise('statistic.edit', 'com_sermondistributor.statistic.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('statistic.edit', 'com_sermondistributor');
|
||||||
@ -339,6 +344,25 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to delete one or more records.
|
||||||
|
*
|
||||||
|
* @param array &$pks An array of record primary keys.
|
||||||
|
*
|
||||||
|
* @return boolean True if successful, false if an error occurs.
|
||||||
|
*
|
||||||
|
* @since 12.2
|
||||||
|
*/
|
||||||
|
public function delete(&$pks)
|
||||||
|
{
|
||||||
|
if (!parent::delete($pks))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to perform batch operations on an item or a set of items.
|
* Method to perform batch operations on an item or a set of items.
|
||||||
*
|
*
|
||||||
@ -450,7 +474,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
{
|
{
|
||||||
if (empty($this->batchSet))
|
if (empty($this->batchSet))
|
||||||
{
|
{
|
||||||
// [4932] Set some needed variables.
|
// [5167] Set some needed variables.
|
||||||
$this->user = JFactory::getUser();
|
$this->user = JFactory::getUser();
|
||||||
$this->table = $this->getTable();
|
$this->table = $this->getTable();
|
||||||
$this->tableClassName = get_class($this->table);
|
$this->tableClassName = get_class($this->table);
|
||||||
@ -464,12 +488,12 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4952] get list of uniqe fields
|
// [5187] get list of uniqe fields
|
||||||
$uniqeFields = $this->getUniqeFields();
|
$uniqeFields = $this->getUniqeFields();
|
||||||
// [4954] remove move_copy from array
|
// [5189] remove move_copy from array
|
||||||
unset($values['move_copy']);
|
unset($values['move_copy']);
|
||||||
|
|
||||||
// [4957] make sure published is set
|
// [5192] make sure published is set
|
||||||
if (!isset($values['published']))
|
if (!isset($values['published']))
|
||||||
{
|
{
|
||||||
$values['published'] = 0;
|
$values['published'] = 0;
|
||||||
@ -481,21 +505,21 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
|
|
||||||
$newIds = array();
|
$newIds = array();
|
||||||
|
|
||||||
// [4994] Parent exists so let's proceed
|
// [5229] Parent exists so let's proceed
|
||||||
while (!empty($pks))
|
while (!empty($pks))
|
||||||
{
|
{
|
||||||
// [4997] Pop the first ID off the stack
|
// [5232] Pop the first ID off the stack
|
||||||
$pk = array_shift($pks);
|
$pk = array_shift($pks);
|
||||||
|
|
||||||
$this->table->reset();
|
$this->table->reset();
|
||||||
|
|
||||||
// [5002] only allow copy if user may edit this item.
|
// [5237] only allow copy if user may edit this item.
|
||||||
|
|
||||||
if (!$this->user->authorise('statistic.edit', $contexts[$pk]))
|
if (!$this->user->authorise('statistic.edit', $contexts[$pk]))
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
// [5012] Not fatal error
|
// [5247] Not fatal error
|
||||||
|
|
||||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||||
|
|
||||||
@ -503,19 +527,19 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5017] Check that the row actually exists
|
// [5252] Check that the row actually exists
|
||||||
if (!$this->table->load($pk))
|
if (!$this->table->load($pk))
|
||||||
{
|
{
|
||||||
if ($error = $this->table->getError())
|
if ($error = $this->table->getError())
|
||||||
{
|
{
|
||||||
// [5022] Fatal error
|
// [5257] Fatal error
|
||||||
$this->setError($error);
|
$this->setError($error);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// [5029] Not fatal error
|
// [5264] Not fatal error
|
||||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -523,7 +547,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
|
|
||||||
$this->table->filename = $this->generateUniqe('filename',$this->table->filename);
|
$this->table->filename = $this->generateUniqe('filename',$this->table->filename);
|
||||||
|
|
||||||
// [5065] insert all set values
|
// [5300] insert all set values
|
||||||
if (SermondistributorHelper::checkArray($values))
|
if (SermondistributorHelper::checkArray($values))
|
||||||
{
|
{
|
||||||
foreach ($values as $key => $value)
|
foreach ($values as $key => $value)
|
||||||
@ -535,7 +559,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5077] update all uniqe fields
|
// [5312] update all uniqe fields
|
||||||
if (SermondistributorHelper::checkArray($uniqeFields))
|
if (SermondistributorHelper::checkArray($uniqeFields))
|
||||||
{
|
{
|
||||||
foreach ($uniqeFields as $uniqeField)
|
foreach ($uniqeFields as $uniqeField)
|
||||||
@ -544,13 +568,13 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5086] Reset the ID because we are making a copy
|
// [5321] Reset the ID because we are making a copy
|
||||||
$this->table->id = 0;
|
$this->table->id = 0;
|
||||||
|
|
||||||
// [5089] TODO: Deal with ordering?
|
// [5324] TODO: Deal with ordering?
|
||||||
// [5090] $this->table->ordering = 1;
|
// [5325] $this->table->ordering = 1;
|
||||||
|
|
||||||
// [5092] Check the row.
|
// [5327] Check the row.
|
||||||
if (!$this->table->check())
|
if (!$this->table->check())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -563,7 +587,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5105] Store the row.
|
// [5340] Store the row.
|
||||||
if (!$this->table->store())
|
if (!$this->table->store())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -571,14 +595,14 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5113] Get the new item ID
|
// [5348] Get the new item ID
|
||||||
$newId = $this->table->get('id');
|
$newId = $this->table->get('id');
|
||||||
|
|
||||||
// [5116] Add the new ID to the array
|
// [5351] Add the new ID to the array
|
||||||
$newIds[$pk] = $newId;
|
$newIds[$pk] = $newId;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5120] Clean the cache
|
// [5355] Clean the cache
|
||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
@ -599,7 +623,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
{
|
{
|
||||||
if (empty($this->batchSet))
|
if (empty($this->batchSet))
|
||||||
{
|
{
|
||||||
// [4734] Set some needed variables.
|
// [4969] Set some needed variables.
|
||||||
$this->user = JFactory::getUser();
|
$this->user = JFactory::getUser();
|
||||||
$this->table = $this->getTable();
|
$this->table = $this->getTable();
|
||||||
$this->tableClassName = get_class($this->table);
|
$this->tableClassName = get_class($this->table);
|
||||||
@ -614,15 +638,15 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4756] make sure published only updates if user has the permission.
|
// [4991] make sure published only updates if user has the permission.
|
||||||
if (isset($values['published']) && !$this->canDo->get('statistic.edit.state'))
|
if (isset($values['published']) && !$this->canDo->get('statistic.edit.state'))
|
||||||
{
|
{
|
||||||
unset($values['published']);
|
unset($values['published']);
|
||||||
}
|
}
|
||||||
// [4769] remove move_copy from array
|
// [5004] remove move_copy from array
|
||||||
unset($values['move_copy']);
|
unset($values['move_copy']);
|
||||||
|
|
||||||
// [4790] Parent exists so we proceed
|
// [5025] Parent exists so we proceed
|
||||||
foreach ($pks as $pk)
|
foreach ($pks as $pk)
|
||||||
{
|
{
|
||||||
if (!$this->user->authorise('statistic.edit', $contexts[$pk]))
|
if (!$this->user->authorise('statistic.edit', $contexts[$pk]))
|
||||||
@ -632,30 +656,30 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4807] Check that the row actually exists
|
// [5042] Check that the row actually exists
|
||||||
if (!$this->table->load($pk))
|
if (!$this->table->load($pk))
|
||||||
{
|
{
|
||||||
if ($error = $this->table->getError())
|
if ($error = $this->table->getError())
|
||||||
{
|
{
|
||||||
// [4812] Fatal error
|
// [5047] Fatal error
|
||||||
$this->setError($error);
|
$this->setError($error);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// [4819] Not fatal error
|
// [5054] Not fatal error
|
||||||
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4825] insert all set values.
|
// [5060] insert all set values.
|
||||||
if (SermondistributorHelper::checkArray($values))
|
if (SermondistributorHelper::checkArray($values))
|
||||||
{
|
{
|
||||||
foreach ($values as $key => $value)
|
foreach ($values as $key => $value)
|
||||||
{
|
{
|
||||||
// [4830] Do special action for access.
|
// [5065] Do special action for access.
|
||||||
if ('access' == $key && strlen($value) > 0)
|
if ('access' == $key && strlen($value) > 0)
|
||||||
{
|
{
|
||||||
$this->table->$key = $value;
|
$this->table->$key = $value;
|
||||||
@ -668,7 +692,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// [4842] Check the row.
|
// [5077] Check the row.
|
||||||
if (!$this->table->check())
|
if (!$this->table->check())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -681,7 +705,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4855] Store the row.
|
// [5090] Store the row.
|
||||||
if (!$this->table->store())
|
if (!$this->table->store())
|
||||||
{
|
{
|
||||||
$this->setError($this->table->getError());
|
$this->setError($this->table->getError());
|
||||||
@ -690,7 +714,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [4864] Clean the cache
|
// [5099] Clean the cache
|
||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -728,10 +752,10 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
$data['params'] = (string) $params;
|
$data['params'] = (string) $params;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [5212] Alter the uniqe field for save as copy
|
// [5447] Alter the uniqe field for save as copy
|
||||||
if ($input->get('task') == 'save2copy')
|
if ($input->get('task') == 'save2copy')
|
||||||
{
|
{
|
||||||
// [5215] Automatic handling of other uniqe fields
|
// [5450] Automatic handling of other uniqe fields
|
||||||
$uniqeFields = $this->getUniqeFields();
|
$uniqeFields = $this->getUniqeFields();
|
||||||
if (SermondistributorHelper::checkArray($uniqeFields))
|
if (SermondistributorHelper::checkArray($uniqeFields))
|
||||||
{
|
{
|
||||||
@ -784,7 +808,7 @@ class SermondistributorModelStatistic extends JModelAdmin
|
|||||||
protected function _generateNewTitle($title)
|
protected function _generateNewTitle($title)
|
||||||
{
|
{
|
||||||
|
|
||||||
// [5270] Alter the title
|
// [5505] Alter the title
|
||||||
$table = $this->getTable();
|
$table = $this->getTable();
|
||||||
|
|
||||||
while ($table->load(array('title' => $title)))
|
while ($table->load(array('title' => $title)))
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage statistics.php
|
@subpackage statistics.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -108,16 +113,16 @@ class SermondistributorModelStatistics extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// [10536] check in items
|
// [10780] check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
// load parent items
|
// load parent items
|
||||||
$items = parent::getItems();
|
$items = parent::getItems();
|
||||||
|
|
||||||
// [10611] set values to display correctly.
|
// [10855] set values to display correctly.
|
||||||
if (SermondistributorHelper::checkArray($items))
|
if (SermondistributorHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// [10614] get user object.
|
// [10858] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
@ -142,31 +147,31 @@ class SermondistributorModelStatistics extends JModelList
|
|||||||
*/
|
*/
|
||||||
protected function getListQuery()
|
protected function getListQuery()
|
||||||
{
|
{
|
||||||
// [7397] Get the user object.
|
// [7637] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [7399] Create a new query object.
|
// [7639] Create a new query object.
|
||||||
$db = JFactory::getDBO();
|
$db = JFactory::getDBO();
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [7402] Select some fields
|
// [7642] Select some fields
|
||||||
$query->select('a.*');
|
$query->select('a.*');
|
||||||
|
|
||||||
// [7409] From the sermondistributor_item table
|
// [7649] From the sermondistributor_item table
|
||||||
$query->from($db->quoteName('#__sermondistributor_statistic', 'a'));
|
$query->from($db->quoteName('#__sermondistributor_statistic', 'a'));
|
||||||
|
|
||||||
// [7550] From the sermondistributor_sermon table.
|
// [7790] From the sermondistributor_sermon table.
|
||||||
$query->select($db->quoteName('g.name','sermon_name'));
|
$query->select($db->quoteName('g.name','sermon_name'));
|
||||||
$query->join('LEFT', $db->quoteName('#__sermondistributor_sermon', 'g') . ' ON (' . $db->quoteName('a.sermon') . ' = ' . $db->quoteName('g.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__sermondistributor_sermon', 'g') . ' ON (' . $db->quoteName('a.sermon') . ' = ' . $db->quoteName('g.id') . ')');
|
||||||
|
|
||||||
// [7550] From the sermondistributor_preacher table.
|
// [7790] From the sermondistributor_preacher table.
|
||||||
$query->select($db->quoteName('h.name','preacher_name'));
|
$query->select($db->quoteName('h.name','preacher_name'));
|
||||||
$query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'h') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('h.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__sermondistributor_preacher', 'h') . ' ON (' . $db->quoteName('a.preacher') . ' = ' . $db->quoteName('h.id') . ')');
|
||||||
|
|
||||||
// [7550] From the sermondistributor_series table.
|
// [7790] From the sermondistributor_series table.
|
||||||
$query->select($db->quoteName('i.name','series_name'));
|
$query->select($db->quoteName('i.name','series_name'));
|
||||||
$query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'i') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('i.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__sermondistributor_series', 'i') . ' ON (' . $db->quoteName('a.series') . ' = ' . $db->quoteName('i.id') . ')');
|
||||||
|
|
||||||
// [7423] Filter by published state
|
// [7663] Filter by published state
|
||||||
$published = $this->getState('filter.published');
|
$published = $this->getState('filter.published');
|
||||||
if (is_numeric($published))
|
if (is_numeric($published))
|
||||||
{
|
{
|
||||||
@ -177,21 +182,21 @@ class SermondistributorModelStatistics extends JModelList
|
|||||||
$query->where('(a.published = 0 OR a.published = 1)');
|
$query->where('(a.published = 0 OR a.published = 1)');
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7435] Join over the asset groups.
|
// [7675] Join over the asset groups.
|
||||||
$query->select('ag.title AS access_level');
|
$query->select('ag.title AS access_level');
|
||||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||||
// [7438] Filter by access level.
|
// [7678] Filter by access level.
|
||||||
if ($access = $this->getState('filter.access'))
|
if ($access = $this->getState('filter.access'))
|
||||||
{
|
{
|
||||||
$query->where('a.access = ' . (int) $access);
|
$query->where('a.access = ' . (int) $access);
|
||||||
}
|
}
|
||||||
// [7443] Implement View Level Access
|
// [7683] Implement View Level Access
|
||||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||||
$query->where('a.access IN (' . $groups . ')');
|
$query->where('a.access IN (' . $groups . ')');
|
||||||
}
|
}
|
||||||
// [7520] Filter by search.
|
// [7760] Filter by search.
|
||||||
$search = $this->getState('filter.search');
|
$search = $this->getState('filter.search');
|
||||||
if (!empty($search))
|
if (!empty($search))
|
||||||
{
|
{
|
||||||
@ -206,23 +211,23 @@ class SermondistributorModelStatistics extends JModelList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7754] Filter by sermon.
|
// [7994] Filter by sermon.
|
||||||
if ($sermon = $this->getState('filter.sermon'))
|
if ($sermon = $this->getState('filter.sermon'))
|
||||||
{
|
{
|
||||||
$query->where('a.sermon = ' . $db->quote($db->escape($sermon, true)));
|
$query->where('a.sermon = ' . $db->quote($db->escape($sermon, true)));
|
||||||
}
|
}
|
||||||
// [7754] Filter by preacher.
|
// [7994] Filter by preacher.
|
||||||
if ($preacher = $this->getState('filter.preacher'))
|
if ($preacher = $this->getState('filter.preacher'))
|
||||||
{
|
{
|
||||||
$query->where('a.preacher = ' . $db->quote($db->escape($preacher, true)));
|
$query->where('a.preacher = ' . $db->quote($db->escape($preacher, true)));
|
||||||
}
|
}
|
||||||
// [7754] Filter by series.
|
// [7994] Filter by series.
|
||||||
if ($series = $this->getState('filter.series'))
|
if ($series = $this->getState('filter.series'))
|
||||||
{
|
{
|
||||||
$query->where('a.series = ' . $db->quote($db->escape($series, true)));
|
$query->where('a.series = ' . $db->quote($db->escape($series, true)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7479] Add the list ordering clause.
|
// [7719] Add the list ordering clause.
|
||||||
$orderCol = $this->state->get('list.ordering', 'a.id');
|
$orderCol = $this->state->get('list.ordering', 'a.id');
|
||||||
$orderDirn = $this->state->get('list.direction', 'asc');
|
$orderDirn = $this->state->get('list.direction', 'asc');
|
||||||
if ($orderCol != '')
|
if ($orderCol != '')
|
||||||
@ -240,42 +245,42 @@ class SermondistributorModelStatistics extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function getExportData($pks)
|
public function getExportData($pks)
|
||||||
{
|
{
|
||||||
// [7187] setup the query
|
// [7427] setup the query
|
||||||
if (SermondistributorHelper::checkArray($pks))
|
if (SermondistributorHelper::checkArray($pks))
|
||||||
{
|
{
|
||||||
// [7190] Get the user object.
|
// [7430] Get the user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// [7192] Create a new query object.
|
// [7432] Create a new query object.
|
||||||
$db = JFactory::getDBO();
|
$db = JFactory::getDBO();
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [7195] Select some fields
|
// [7435] Select some fields
|
||||||
$query->select('a.*');
|
$query->select('a.*');
|
||||||
|
|
||||||
// [7197] From the sermondistributor_statistic table
|
// [7437] From the sermondistributor_statistic table
|
||||||
$query->from($db->quoteName('#__sermondistributor_statistic', 'a'));
|
$query->from($db->quoteName('#__sermondistributor_statistic', 'a'));
|
||||||
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
||||||
// [7207] Implement View Level Access
|
// [7447] Implement View Level Access
|
||||||
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
if (!$user->authorise('core.options', 'com_sermondistributor'))
|
||||||
{
|
{
|
||||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||||
$query->where('a.access IN (' . $groups . ')');
|
$query->where('a.access IN (' . $groups . ')');
|
||||||
}
|
}
|
||||||
|
|
||||||
// [7214] Order the results by ordering
|
// [7454] Order the results by ordering
|
||||||
$query->order('a.ordering ASC');
|
$query->order('a.ordering ASC');
|
||||||
|
|
||||||
// [7216] Load the items
|
// [7456] Load the items
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
$db->execute();
|
$db->execute();
|
||||||
if ($db->getNumRows())
|
if ($db->getNumRows())
|
||||||
{
|
{
|
||||||
$items = $db->loadObjectList();
|
$items = $db->loadObjectList();
|
||||||
|
|
||||||
// [10611] set values to display correctly.
|
// [10855] set values to display correctly.
|
||||||
if (SermondistributorHelper::checkArray($items))
|
if (SermondistributorHelper::checkArray($items))
|
||||||
{
|
{
|
||||||
// [10614] get user object.
|
// [10858] get user object.
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
foreach ($items as $nr => &$item)
|
foreach ($items as $nr => &$item)
|
||||||
{
|
{
|
||||||
@ -286,13 +291,13 @@ class SermondistributorModelStatistics extends JModelList
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [10824] unset the values we don't want exported.
|
// [11068] unset the values we don't want exported.
|
||||||
unset($item->asset_id);
|
unset($item->asset_id);
|
||||||
unset($item->checked_out);
|
unset($item->checked_out);
|
||||||
unset($item->checked_out_time);
|
unset($item->checked_out_time);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// [10833] Add headers to items array.
|
// [11077] Add headers to items array.
|
||||||
$headers = $this->getExImPortHeaders();
|
$headers = $this->getExImPortHeaders();
|
||||||
if (SermondistributorHelper::checkObject($headers))
|
if (SermondistributorHelper::checkObject($headers))
|
||||||
{
|
{
|
||||||
@ -311,13 +316,13 @@ class SermondistributorModelStatistics extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function getExImPortHeaders()
|
public function getExImPortHeaders()
|
||||||
{
|
{
|
||||||
// [7236] Get a db connection.
|
// [7476] Get a db connection.
|
||||||
$db = JFactory::getDbo();
|
$db = JFactory::getDbo();
|
||||||
// [7238] get the columns
|
// [7478] get the columns
|
||||||
$columns = $db->getTableColumns("#__sermondistributor_statistic");
|
$columns = $db->getTableColumns("#__sermondistributor_statistic");
|
||||||
if (SermondistributorHelper::checkArray($columns))
|
if (SermondistributorHelper::checkArray($columns))
|
||||||
{
|
{
|
||||||
// [7242] remove the headers you don't import/export.
|
// [7482] remove the headers you don't import/export.
|
||||||
unset($columns['asset_id']);
|
unset($columns['asset_id']);
|
||||||
unset($columns['checked_out']);
|
unset($columns['checked_out']);
|
||||||
unset($columns['checked_out_time']);
|
unset($columns['checked_out_time']);
|
||||||
@ -339,7 +344,7 @@ class SermondistributorModelStatistics extends JModelList
|
|||||||
*/
|
*/
|
||||||
protected function getStoreId($id = '')
|
protected function getStoreId($id = '')
|
||||||
{
|
{
|
||||||
// [10159] Compile the store id.
|
// [10403] Compile the store id.
|
||||||
$id .= ':' . $this->getState('filter.id');
|
$id .= ':' . $this->getState('filter.id');
|
||||||
$id .= ':' . $this->getState('filter.search');
|
$id .= ':' . $this->getState('filter.search');
|
||||||
$id .= ':' . $this->getState('filter.published');
|
$id .= ':' . $this->getState('filter.published');
|
||||||
@ -363,15 +368,15 @@ class SermondistributorModelStatistics extends JModelList
|
|||||||
*/
|
*/
|
||||||
protected function checkInNow()
|
protected function checkInNow()
|
||||||
{
|
{
|
||||||
// [10552] Get set check in time
|
// [10796] Get set check in time
|
||||||
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
|
$time = JComponentHelper::getParams('com_sermondistributor')->get('check_in');
|
||||||
|
|
||||||
if ($time)
|
if ($time)
|
||||||
{
|
{
|
||||||
|
|
||||||
// [10557] Get a db connection.
|
// [10801] Get a db connection.
|
||||||
$db = JFactory::getDbo();
|
$db = JFactory::getDbo();
|
||||||
// [10559] reset query
|
// [10803] reset query
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
$query->select('*');
|
$query->select('*');
|
||||||
$query->from($db->quoteName('#__sermondistributor_statistic'));
|
$query->from($db->quoteName('#__sermondistributor_statistic'));
|
||||||
@ -379,24 +384,24 @@ class SermondistributorModelStatistics extends JModelList
|
|||||||
$db->execute();
|
$db->execute();
|
||||||
if ($db->getNumRows())
|
if ($db->getNumRows())
|
||||||
{
|
{
|
||||||
// [10567] Get Yesterdays date
|
// [10811] Get Yesterdays date
|
||||||
$date = JFactory::getDate()->modify($time)->toSql();
|
$date = JFactory::getDate()->modify($time)->toSql();
|
||||||
// [10569] reset query
|
// [10813] reset query
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
// [10571] Fields to update.
|
// [10815] Fields to update.
|
||||||
$fields = array(
|
$fields = array(
|
||||||
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
||||||
$db->quoteName('checked_out') . '=0'
|
$db->quoteName('checked_out') . '=0'
|
||||||
);
|
);
|
||||||
|
|
||||||
// [10576] Conditions for which records should be updated.
|
// [10820] Conditions for which records should be updated.
|
||||||
$conditions = array(
|
$conditions = array(
|
||||||
$db->quoteName('checked_out') . '!=0',
|
$db->quoteName('checked_out') . '!=0',
|
||||||
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
||||||
);
|
);
|
||||||
|
|
||||||
// [10581] Check table
|
// [10825] Check table
|
||||||
$query->update($db->quoteName('#__sermondistributor_statistic'))->set($fields)->where($conditions);
|
$query->update($db->quoteName('#__sermondistributor_statistic'))->set($fields)->where($conditions);
|
||||||
|
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage sermondistributor.php
|
@subpackage sermondistributor.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
1
admin/sql/updates/mysql/1.2.9.sql
Normal file
1
admin/sql/updates/mysql/1.2.9.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
@ -1,22 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
Vast Development Method
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.2.9
|
@version 1.3.0
|
||||||
@build 1st December, 2015
|
@build 23rd December, 2015
|
||||||
@created 22nd October, 2015
|
@created 22nd October, 2015
|
||||||
@package Sermon Distributor
|
@package Sermon Distributor
|
||||||
@subpackage help_document.php
|
@subpackage help_document.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
A sermon distributor that links to Dropbox.
|
||||||
|
|
||||||
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
@ -48,7 +53,7 @@ class SermondistributorTableHelp_document extends JTable
|
|||||||
{
|
{
|
||||||
parent::__construct('#__sermondistributor_help_document', 'id', $db);
|
parent::__construct('#__sermondistributor_help_document', 'id', $db);
|
||||||
|
|
||||||
// [4194] Adding History Options
|
// [4429] Adding History Options
|
||||||
JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_sermondistributor.help_document'));
|
JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_sermondistributor.help_document'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user