authorize all files in 9gag (test)
This commit is contained in:
@@ -735,8 +735,11 @@ class Databap extends PhpObject
|
||||
break;
|
||||
}
|
||||
}
|
||||
$asResult = $this->downloadToTmp($o9gagImage->getAttribute('src'));
|
||||
|
||||
|
||||
$sUrl = $o9gagImage->getAttribute('src');
|
||||
$sFilePath = self::DOC_TMP_FOLDER.uniqid();
|
||||
$asResult = ToolBox::createThumbnail($sUrl, self::CHAT_IMG_MAX_WIDTH, self::CHAT_IMG_MAX_HEIGHT, $sFilePath, false, array());
|
||||
|
||||
if($asResult['error']=='')
|
||||
{
|
||||
$asPost['url_img'] = $asResult['out'];
|
||||
@@ -1957,7 +1960,7 @@ class Databap extends PhpObject
|
||||
$sFrom = $asUserFrom['name'].' <www-data@lutran.fr>';
|
||||
|
||||
$sTo = $asUserTo['name'].' <'.$asUserTo['email'].'>';
|
||||
$sMessage .= "\n\n\n".'<i>Ne répondez pas à ce mail. Connectez-vous sur <a href="http://databap.lutran.fr/chat">Databap</a>.</i>';
|
||||
$sMessage .= "\n\n\n".'<i>Ne répondez pas à ce mail. Connectez-vous sur <a href="http://databap.lutran.fr/#chat">Databap</a>.</i>';
|
||||
|
||||
$sResult = ToolBox::sendMail($sFrom, 'Databap PM', $sMessage, $sTo, array(), false);
|
||||
$bSuccess = ($sResult==ToolBox::MAIL_SUCCESS);
|
||||
|
||||
Reference in New Issue
Block a user