View file dl/orders.php

File size: 3.25Kb
<?php
#********************************** AgS MOD DOWNLOAD CENTR SEA *************************************#
#***************************************************************************************************#
#  /||||||||||||||| *********************  /||||||||||||||| *********************  /||||||||||||||| #
# | ||||||||||||||| ********************* | ||||||||||||||| ********************* | ||||||||||||||| #
# | |||||/////||||| ********************* | |||||/////////  ********************* | |||||/////////  #
# | |||||   | ||||| ****** E-MAIL ******* | |||||           ****** WAP/WEB ****** | |||||           #
# | |||||   | ||||| *** [email protected] *** | |||||           * http://ags.h2m.ru * | ||||||||||||||| #
# | |||||   | ||||| ********************* | ||||||||||||||| ********************* | ||||||||||||||| #
# | |||||   | ||||| ********************* | |||||/////||||| ********************* |///////////||||| #
# | ||||||||||||||| ****** SKYPE ******** | |||||   | ||||| ***** MOD AUTHOR ****           | ||||| #
# | |||||////|||||| ***** agrizz15 ****** | |||||   | ||||| ***** Agris Cišs ****  /||||||||||||||| #
# | |||||   | ||||| ********************* | ||||||||||||||| ********************* | ||||||||||||||| #
# |/////    |/////  ********************* |///////////////  ********************* |///////////////  #
#***************************************************************************************************#
#********************************* MOD by AgS in 2010 @ LATVIA *************************************#


require_once"system/start.php";
require_once"system/config.php";
require_once"system/db.php";
require_once"system/head.php";
require_once"lng/$setup[lng]/lng.php";
require_once"system/functions.php";
require_once"system/cookies.php";
require_once"system/counter.php";
include_once"thm/$setup[thm]/index.php";
include_once"system/msg.php";



/* Pasūtījumi izslēgti */
if($setup['zakaz']){

/* Datu pārbaude */
if(!isset($_POST['text']) or !isset($_POST['back'])){

/* Pasūtījuma forma */
echo '<img src="pic/main/head.gif" alt=""><b>'.sys_tab.'</b><br><br>';
echo '<form method="post" action="orders.php?">';

echo tab_002.'<br><br>';

echo tab_003.':<br>';
echo '<input type="text" name="text" value="" maxlength="500"><br>';
echo tab_004.':<br>';
echo '<input type="text" name="back" value="" maxlength="500"><br>';
echo '<input type=submit name="send" value="'.tab_005.'"></form>';

}else{
if(empty($_POST['back']) or empty($_POST['text'])) die(tab_006.'');

$headers = 'Content-Type: text/plain; charset=utf-8'."\n".'From: '.$setup['dl_name'];
$text = tab_007.': '.$_POST['text'].' '.tab_008.': '.$_POST['back'];

if(mail($setup['mailing'],'=?utf-8?B?'.base64_encode(sys_tab).'?=',$text,$headers)){
echo '<img src="pic/main/head.gif" alt=""><b>'.sys_tab.'</b><br><br>';
echo tab_010.'<br>';
}else{ 
echo '<img src="pic/main/head.gif" alt=""><b>'.sys_tab.'</b><br><br>';
echo tab_010.'<br>';}
}


echo '<br>';
echo '<img src="pic/main/dot.gif" alt=""> <a href="index.php?'.SID.'">'.sys_dl.'</a><br>';
echo '<img src="pic/main/home.gif" alt=""> <a href="'.$setup['home'].'/?'.SID.'">'.sys_home.'</a><br>';
} else { header ("Location: index.php?sayer=404&".SID); exit;}

include_once"thm/$setup[thm]/foot.php";
?>