cbTabHandler(); } function _evaluateUsername($fromname, $fromid, $publicname) { $back = NULL; if ($fromname==NULL && !$fromid) { if (!$publicname || $publicname==NULL) $back = _UDDEIM_PUBLICUSER; else $back = $publicname; } elseif ($fromname==NULL) { if (!$publicname || $publicname==NULL) // maybe we have the original name still stored here $back = _UDDEIM_DELETEDUSER; else $back = $publicname; } else $back = $fromname; return $back; } function _getLanguageFile() { global $mainframe,$mosConfig_lang; $this->pathtoadmin = $mainframe->getCfg('absolute_path')."/administrator/components/com_uddeim"; $this->pathtouser = $mainframe->getCfg('absolute_path')."/components/com_uddeim"; $this->pathtosite = $mainframe->getCfg('live_site'); require_once( $this->pathtouser."/crypt.class.php"); if(file_exists( $this->pathtoadmin."/config.class.php")) include_once( $this->pathtoadmin."/config.class.php"); $this->config = new uddeimconfigclass(); if(!defined('_UDDEIM_INBOX')) { $postfix = ""; if ($this->config->languagecharset) $postfix = ".utf8"; if (file_exists($this->pathtoadmin.'/language'.$postfix.'/'.$mosConfig_lang.'.php')) { include_once($this->pathtoadmin.'/language'.$postfix.'/'.$mosConfig_lang.'.php'); } elseif (file_exists($this->pathtoadmin.'/language'.$postfix.'/english.php')) { include_once($this->pathtoadmin.'/language'.$postfix.'/english.php'); } elseif (file_exists($this->pathtoadmin.'/language/english.php')) { include_once($this->pathtoadmin.'/language/english.php'); } } $this->uddeicons_readpic = ""._UDDEIM_STATUS_READ   .""; $this->uddeicons_unreadpic = ""._UDDEIM_STATUS_UNREAD .""; } function getDisplayTab($tab,$user,$ui) { global $database, $mosConfig_hits, $mainframe, $mosConfig_offset, $mosConfig_live_site, $my; $myself = $my->id; if ($myself != $user->id) return null; $sql="SELECT id FROM #__menu WHERE link LIKE '%com_uddeim%' LIMIT 1"; $database->setQuery($sql); $item_id=$database->loadResult(); if ($this->config->overwriteitemid) $item_id = $this->config->useitemid; $this->_getLanguageFile(); $params = $this->params; $return=""; if($tab->description != null) $return .= "\t\t
".unHtmlspecialchars(getLangDefinition($tab->description))."
\n"; $params = $this->params; $entriesNumber = $params->get('entriesNumber', '10'); $pagingEnabled = $params->get('pagingEnabled', 0); $pagingParams = $this->_getPaging(array(),array("entries_")); if ($pagingEnabled) { $sql = "SELECT count(a.id) FROM #__uddeim AS a LEFT JOIN #__users AS b ON a.fromid=b.id WHERE a.toid=".(int)$myself." AND a.totrash=0 AND archived=0"; $database->setQuery($sql); $total=$database->loadResult(); if (!is_numeric($total)) $total = 0; if ($pagingParams["entries_limitstart"] === null) $pagingParams["entries_limitstart"] = 0; if ($entriesNumber > $total) $pagingParams["entries_limitstart"] = 0; } else { $pagingParams["entries_limitstart"] = 0; } $sql = "SELECT a.*, b.".($this->config->realnames ? "name" : "username")." AS fromname FROM #__uddeim AS a LEFT JOIN #__users AS b ON a.fromid=b.id WHERE a.toid=".(int)$myself." AND a.totrash=0 AND archived=0 ORDER BY datum DESC LIMIT ".($pagingParams["entries_limitstart"]?$pagingParams["entries_limitstart"]:"0").",".$entriesNumber; $database->setQuery($sql); $items=$database->loadObjectList(); if(count($items) > 0) { if ($pagingEnabled) $title = _UDDEIM_PLUG_INBOXENTRIES.$entriesNumber; else $title = _UDDEIM_PLUG_LAST.$entriesNumber._UDDEIM_PLUG_ENTRIES; $return .= "
"; $return .= "
".$title."
"; $return .= "
 
"; $return .= ""; $return .= ""; $return .= ""; $return .= ""; $return .= ""; $return .= ""; $i = 2; foreach($items as $item) { if($item->toread) $readcell=$this->uddeicons_readpic; else $readcell=$this->uddeicons_unreadpic; $fromname = $this->_evaluateUsername($item->fromname, $item->fromid, $item->publicname); if($item->systemmessage) $fromname = $item->systemmessage; if ($item->cryptmode==2) $pms_show = sefRelToAbs("index.php?option=com_uddeim&Itemid=".$item_id."&task=showpass&messageid=".$item->id); else $pms_show = sefRelToAbs("index.php?option=com_uddeim&Itemid=".$item_id."&task=show&messageid=".$item->id); $cm = getUddeIMmessage($item->message, "", $item->cryptmode, "", $this->config->cryptkey); $cm=stripslashes($cm); if($cm->systemmessage || $this->config->allowbb) { require_once ($mainframe->getCfg('absolute_path')."/components/com_uddeim/bbparser.php"); $cm=bbcode_strip($cm); } $cm=htmlspecialchars($cm, ENT_QUOTES, $this->config->charset); $cm=str_replace("&#", "&#", $cm); $i = ($i==1) ? 2 : 1; $return .= "" . "" . ""; $return .= "\n"; } $return .= "
". _UDDEIM_PLUG_STATUS ."". _UDDEIM_PLUG_SENDER ."". _UDDEIM_PLUG_MESSAGE ."
".$readcell."".$fromname."".substr($cm,0,$this->config->firstwordsinbox)."...
"; if ($pagingEnabled && ($entriesNumber < $total)) { $return .= "
" .$this->_writePaging($pagingParams,"entries_",$entriesNumber,$total) ."
"; } } else { $return .= "

"; $return .= _UDDEIM_PLUG_EMPTYINBOX; // empty $return .= "
"; } return $return; }}
Lost your Password?
Please enter your Username and e-mail address then click on the Send Password button.
You will receive a new password shortly. Use this new password to access the site.
Username:
E-mail Address:
000webhost logo