hello 404 Not Found
Al-HUWAITI Shell
Al-huwaiti


Server : Apache
System : Linux webm006.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : chryzalihi ( 621211)
PHP Version : 8.3.31
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
Directory :  /home/c/h/r/chryzalihi/www/wp-content/languages/themes/the/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/c/h/r/chryzalihi/www/wp-content/languages/themes/the/FMViewGenerete_xml_fmc.php.tar
home/chryzalihi/www/wp-contentOLD/plugins/contact-form-maker/admin/views/FMViewGenerete_xml_fmc.php000060400000007535152441704250027566 0ustar00<?php

class FMViewGenerete_xml_fmc {
  ////////////////////////////////////////////////////////////////////////////////////////
  // Events                                                                             //
  ////////////////////////////////////////////////////////////////////////////////////////
  ////////////////////////////////////////////////////////////////////////////////////////
  // Constants                                                                          //
  ////////////////////////////////////////////////////////////////////////////////////////
  ////////////////////////////////////////////////////////////////////////////////////////
  // Variables                                                                          //
  ////////////////////////////////////////////////////////////////////////////////////////
  private $model;

  ////////////////////////////////////////////////////////////////////////////////////////
  // Constructor & Destructor                                                           //
  ////////////////////////////////////////////////////////////////////////////////////////
  public function __construct($model) {
    $this->model = $model;
  }
  
  ////////////////////////////////////////////////////////////////////////////////////////
  // Public Methods                                                                     //
  ////////////////////////////////////////////////////////////////////////////////////////
  public function display() {
	$form_id = (int)$_REQUEST['form_id'];  
	$params = $this->model->get_data();
	$limitstart = (int)$_REQUEST['limitstart'];
	$send_header = (int)$_REQUEST['send_header'];
	$data = $params[0];
	$title = $params[1]; 
	define('PHP_TAB', "\t");
	
	$upload_dir = wp_upload_dir();
	$file_path = $upload_dir['basedir'] . '/form-maker'; 
	if (!is_dir($file_path)) { 
		mkdir($file_path, 0777); 
	} 
	$tempfile = $file_path.'/export'.$form_id.'.txt';
	if($limitstart == 0 && file_exists ($tempfile))
		unlink($tempfile);
	$output = fopen($tempfile, "a");
	if($limitstart == 0) {
		fwrite($output, '<?xml version="1.0" encoding="utf-8" ?>'.PHP_EOL);
		fwrite($output, '<form title="'.$title.'">'.PHP_EOL);
	}	
	
	foreach ($data as $key1 => $value1) {
		fwrite($output, PHP_TAB.'<submission id="'.$key1.'">'.PHP_EOL);
		foreach ($value1 as $key => $value) {
			fwrite($output, PHP_TAB.PHP_TAB.'<field title="'.$key.'">'.PHP_EOL);
			fwrite($output, PHP_TAB.PHP_TAB.PHP_TAB.'<![CDATA['.$value.']]>'.PHP_EOL);
			fwrite($output, PHP_TAB.PHP_TAB.'</field>'.PHP_EOL);
		}
		fwrite($output, PHP_TAB.'</submission>'.PHP_EOL);
	}
	
	if($send_header == 1){
		fwrite($output, '</form>');
		fclose($output);
		
		$txtfile = fopen($tempfile, "r");
		$txtfilecontent = fread($txtfile, filesize($tempfile));
		fclose($txtfile);
		$filename = $title . "_" . date('Ymd') . ".xml";
		header('Content-Encoding: Windows-1252');
		header('Content-type: text/xml; charset=utf-8');
		header("Content-Disposition: attachment; filename=\"$filename\"");
		
		echo $txtfilecontent;
		unlink($tempfile);
		die(); 
	} 
	
  }

  ////////////////////////////////////////////////////////////////////////////////////////
  // Getters & Setters                                                                  //
  ////////////////////////////////////////////////////////////////////////////////////////
  ////////////////////////////////////////////////////////////////////////////////////////
  // Private Methods                                                                    //
  ////////////////////////////////////////////////////////////////////////////////////////
  ////////////////////////////////////////////////////////////////////////////////////////
  // Listeners                                                                          //
  ////////////////////////////////////////////////////////////////////////////////////////
}

Al-HUWAITI Shell