-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.cbjuice2.php
More file actions
37 lines (33 loc) · 1.11 KB
/
install.cbjuice2.php
File metadata and controls
37 lines (33 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* Joomla! 1.5/1.6 component CBJUICE2
*
* @version $Id: controller.php 2010-12-25 12:20:17 svn $
* @author Paul Jacobson and Stephen Thompson
* @package Joomla
* @subpackage CBJUICE2
* @license GNU/GPL
*
* This component manages users using a CSV file
*
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
/*here we are going to do a check to see that cb is installed.
*
*/
global $_CB_framework, $mainframe;
if ( defined( 'JPATH_ADMINISTRATOR' ) ) {
if ( ! file_exists( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' ) ) {
echo 'CB not installed! CB is required for CBJUICE';
return;
}
include_once( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' );
} else {
if ( ! file_exists( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' ) ) {
echo 'CB not installed! CB is required for CBJUICE.';
return;
}
include_once( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' );
}
?>