コード例 #1
0
ファイル: uddeim.api.php プロジェクト: kosmosby/medicine-prof
	function uddeIMAPI() {
		global $udde_smon, $udde_lmon, $udde_sweekday, $udde_lweekday;
		$this->config 		 = new uddeimconfigclass();
		$this->absolute_path = uddeIMgetPath('absolute_path');
		$this->pathtoadmin   = uddeIMgetPath('admin');
		$this->pathtouser    = uddeIMgetPath('user');
		$this->pathtosite    = uddeIMgetPath('live_site');
		uddeIMloadLanguage($this->pathtoadmin, $this->config);
	}
コード例 #2
0
 /**
  * Checks if UddeIM is installed; if it is then load its API
  *
  * @return bool
  */
 private function isInstalled()
 {
     global $_CB_framework, $_PLUGINS;
     $absPath = $_CB_framework->getCfg('absolute_path');
     if (!file_exists($absPath . '/components/com_uddeim/uddeim.php')) {
         $_PLUGINS->_setErrorMSG(CBTxt::T('UDDEIM_NOT_INSTALLED', 'The UddeIM private message system is not installed.'));
         return false;
     }
     static $loaded = 0;
     if (!$loaded++) {
         $this->loadLib();
         /** @noinspection PhpIncludeInspection */
         require_once $absPath . '/administrator/components/com_uddeim/admin.shared.php';
         /** @noinspection PhpIncludeInspection */
         require_once $absPath . '/components/com_uddeim/bbparser.php';
         /** @noinspection PhpIncludeInspection */
         require_once $absPath . '/components/com_uddeim/includes.php';
         /** @noinspection PhpIncludeInspection */
         require_once $absPath . '/components/com_uddeim/includes.db.php';
         /** @noinspection PhpIncludeInspection */
         require_once $absPath . '/components/com_uddeim/crypt.class.php';
         /** @noinspection PhpIncludeInspection */
         require_once $absPath . '/administrator/components/com_uddeim/config.class.php';
         $this->uddeIMConfigRAW = new uddeimconfigclass();
         uddeIMloadLanguage($absPath . '/administrator/components/com_uddeim', $this->uddeIMConfigRAW);
         $this->uddeIMConfig->load($this->uddeIMConfigRAW);
     }
     return true;
 }
コード例 #3
0
ファイル: uddeim.php プロジェクト: kosmosby/medicine-prof
// if (!define( '_MOS_MAMBO_INCLUDED'))
// if (file_exists(uddeIMgetPath('absolute_path').'/includes/mambo.php'))
//	require_once(uddeIMgetPath('absolute_path').'/includes/mambo.php');

require($pathtoadmin."/config.class.php");			// get the configuration file
$config = new uddeimconfigclass();

$userid = uddeIMgetUserID();
$usergid = uddeIMgetGID($userid);
$cbitemid = uddeIMinitGetPicLink($config);
$config->userid = $userid;
$config->usergid = $usergid;
$config->cbitemid = $cbitemid;

uddeIMcheckConfig($pathtouser, $pathtoadmin, $config);
$usedlanguage = uddeIMloadLanguage($pathtoadmin, $config);

// prepare temporary variables
$config->flags = 0;
$nouserlist = (int) uddeIMmosGetParam ( $_REQUEST, 'nouserlist', 0);		// suppress userlist (used for menu links only)
if ($nouserlist) $config->flags |= ($nouserlist & 0x07);			// 0x01 = suppress user list, 0x02 = suppress connection list, 0x03 = supress both (+0x04=disable TO field)

if ($plugin=uddeIMcheckPlugin('postbox')) {
	if ($config->enablepostbox) {
		include_once($plugin);
		if (!uddeIMcheckVersionPlugin('postbox'))
			$config->enablepostbox = 0;
	}
} else {
	$config->enablepostbox = 0;
}