Cheetah
index.php
Go to the documentation of this file.
1 <?php
2 
8  require_once( CH_DIRECTORY_PATH_MODULES . $aModule['path'] . '/classes/' . $aModule['class_prefix'] . 'Module.php');
9  ch_import('ChWsbPageView');
10 
12 
13  // ** init some needed variables ;
14 
17 
18  //-- Define activity type --//;
20  if(isset($_GET['spy_type']) ) {
21  switch($_GET['spy_type']) {
22  case 'profiles_activity' :
23  $sActivityType = 'profiles_activity';
24  break;
25 
26  case 'content_activity' :
27  $sActivityType = 'content_activity';
28  break;
29  }
30  }
31 
32  $iIndex = 0;
33  $sPageCaption = _t('_ch_spy_notifications');
34 
35  $GLOBALS['oTopMenu']->setCurrentProfileID($oSpy->iMemberId);
36 
37  $_page['name_index'] = $iIndex;
38  $_page['header'] = $sPageCaption ;
39  $_page['header_text'] = $sPageCaption ;
40  $_page['css_name'] = 'spy.css';
41  $_page_cont[$iIndex]['page_main_code'] = $oSpy->getActivityPage($oSpy->iMemberId, $sActivityType);
42 
43  PageCode($oSpy -> _oTemplate);
$aModule
$aModule
Definition: classifieds.php:21
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
php
$_GET
$_GET['debug']
Definition: index.php:67
$sPageCaption
$sPageCaption
Definition: index.php:75
$GLOBALS
$GLOBALS['aRequest']
Definition: index.php:10
ChSpyModule
Definition: ChSpyModule.php:67
global
if(!defined("GLOBAL_MODULE")) define("GLOBAL_MODULE" global
Definition: header.inc.php:25
_t
_t($key, $arg0="", $arg1="", $arg2="")
Definition: languages.inc.php:509
$_page
$_page['name_index']
Definition: index.php:47
PageCode
PageCode($oTemplate=null)
Definition: design.inc.php:91
$sActivityType
$sActivityType
Definition: index.php:19
$iIndex
$iIndex
Definition: index.php:18
$_page_cont
$_page_cont[$_ni]['page_main_code']
Definition: index.php:58
$oSpy
$oSpy
Definition: index.php:11