diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-01-26 03:05:35 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-01-26 03:05:35 +0000 |
commit | f51c3d89d5118e45914a1de7f6bdb03dd559e32e (patch) | |
tree | c76ee67ddb62723503711175e406442b72c55103 /h-source/Application/Include/myFunctions.php | |
parent | 1ddc3583a205edd248a53fcf65e3fbad3664f85f (diff) |
added mail notifications for talk messages
Diffstat (limited to 'h-source/Application/Include/myFunctions.php')
-rw-r--r-- | h-source/Application/Include/myFunctions.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php index 7e509cd..5c64317 100644 --- a/h-source/Application/Include/myFunctions.php +++ b/h-source/Application/Include/myFunctions.php @@ -392,3 +392,23 @@ function goToModeratedItem( $row = array() ) } return 'http://'.DOMAIN_NAME.'/'.$url; } + +function getUrlsFromIdHard($id_hard) +{ + $clean['id_hard'] = (int)$id_hard; + + $urlView = "http://".DOMAIN_NAME; + $urlTalk = "http://".DOMAIN_NAME; + + $hard = new HardwareModel(); + $res = $hard->select('type,model')->where(array('id_hard'=>$clean['id_hard']))->send(); + if (count($res) > 0) + { + $urlView = "http://".DOMAIN_NAME."/".MyStrings::$reverse[$res[0]['hardware']['type']]."/view/".Lang::$current."/".$clean['id_hard']."/".encodeUrl($res[0]['hardware']['model']); + + $urlTalk = "http://".DOMAIN_NAME."/".MyStrings::$reverse[$res[0]['hardware']['type']]."/talk/".Lang::$current."/".$clean['id_hard']; + } + + return array('urlView'=>$urlView,'urlTalk'=>$urlTalk); + +}
\ No newline at end of file |