blob: 0274d2953a514d3f45c8cc6423408c16fdf2ab24 (
plain)
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
|
<?php
/**
* @version $Header$
* @package contact
* @subpackage functions
*/
/**
* Initialization
*/
require_once( CONTACT_PKG_PATH.'Contact.php');
require_once( TASKS_PKG_PATH.'Tasks.php');
require_once( LIBERTY_PKG_PATH.'lookup_content_inc.php' );
if ( isset($_REQUEST['content_id']) ) {
// if we already have a gContent, we assume someone else created it for us, and has properly loaded everything up.
if( empty( $gContent ) || !is_object( $gContent ) ) {
if( @BitBase::verifyId( $_REQUEST['content_id'] ) ) {
$gContent = new Contact( NULL, $_REQUEST['content_id'] );
$gContent->load();
} else {
$gContent = new Contact();
}
$gBitSmarty->clear_assign( 'gContent' );
$gBitSmarty->assign( 'gContent', $gContent );
}
if( is_object( $gContent ) ) {
$gTask = new Tasks( NULL, $_REQUEST['content_id'] );
$gTask->mInfo['tasks'] = $gTask->getList( $_REQUEST );
$gBitSmarty->assign_by_ref( 'taskInfo', $gTask->mInfo );
}
}
?>
|