AnonSec Shell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.193
Web Server : Apache
System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : awebpaca ( 35430)
PHP Version : 8.5.0
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/a/w/e/awebpaca/minedecapgaronne/components/com_ovacomposer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/a/w/e/awebpaca/minedecapgaronne/components/com_ovacomposer/controller.php
<?php
/**
 * @version     $Id$
 * @author      OvaTheme
 * @package     Joomla.Site
 * @subpackage  com_ovacomposer
 * @copyright   Copyright (C) 2013 OvaTheme. All rights reserved.
 * @license     License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.
 */

defined('_JEXEC') or die;


class OvaComposerController extends JControllerLegacy{

	public function display($cachable = false, $urlparams = false){

			$view   = $this->input->get('view', 'page');
			$layout = $this->input->get('layout', 'default');
			$id     = $this->input->getInt('id');
			
			parent::display();
			return $this;
	}

	// Send mail by php function
	public function contact(){

		$app 		= JFactory::getApplication();
	 	$mailfrom	= $app->getCfg('mailfrom');
		$fromname	= $app->getCfg('fromname');
		
		$emailauthor = JRequest::getVar("emailauthor");		

		// Get Input
		$name = JRequest::getVar("name");		
		$email = JRequest::getVar("email");
		$phone = JRequest::getVar("phone");
		$message = JRequest::getVar("message");
		$subject = JRequest::getVar("subject");
		$thankyou = JRequest::getVar("thanks");
		
		if(trim($emailauthor)){
		$mailfrom = $emailauthor;
		}

		$prefix = JText::sprintf('COM_OVACOMPOSER_CONTACT_THIS_IS_AN_ENQUIRY_EMAIL_VIA FROM', JUri::base());
		$body = "{$prefix} \n\n";
		$body.="{$name} <{$email}> \n";
		if($phone!=""){
			$body.="Phone : {$phone}";
		}
		$body.="\r\n\r\n\r\n".stripslashes($message);

		
		$mail = JFactory::getMailer();
		$mail->addRecipient($mailfrom);
		$mail->setSender(array($mailfrom, $fromname));
		$mail->setSubject($subject);
		$mail->setBody($body);
		$sent = $mail->Send();
		$mes = (string)$sent;
		if (!($sent instanceof Exception)){
			echo json_encode(array("check"=>1,"message"=>$thankyou));
		}else{
			echo json_encode(array("check"=>0,"message"=>$mes));
		}
		die();
	}
}

Anon7 - 2022
AnonSec Team