<?php
require('config.php');
require_once('Auth.php');
$Uid = $_SESSION["uid"] ;
print("<LINK rel=\"stylesheet\" href=\"style/style.css\" type=\"text/css\">");
print ("<META content=\"text/html; charset=utf-8\" http-equiv=Content-Type>");
mysql_connect($locaaal,$useeer,$paaass) ;
mysql_select_db($dataaabase);
print "<p align=\"right\" dir=\"rtl\">Ø´Ù
ا با ÙØ§Ù
Ú©Ø§Ø±Ø¨Ø±Û " . "<b>" . $Uid . "</b> ÙØ§Ø±Ø¯ Ø´Ø¯Ù Ø§ÛØ¯<br>";
$value=$Uid;
$sql = "select PN,Permission from logins where (UserId = '$value');";
$result2=mysql_query($sql);
$show=mysql_fetch_row($result2);
print "گرÙÙÛ Ú©Ù Ø´Ù
ا در ÙØ¹Ø§ÙÛØª Ù
Û Ú©ÙÛØ¯ :" . "<b>" . $show[0] . "<B><br><br></p>";
$tmp="tmp";
if (!function_exists(move_uploaded_file))
{
function move_uploaded_file ($src,$to)
{
if (@$to && @$src)
return ( copy($src,$to) && unlink($src) );
else
return false;
}
}
if ( $userfile_size != 0 || ($_FILES["userfile"]["error"] == 1) )
{
$ext = substr($userfile_name,-4) ;
if ( $ext != '.pdf' && $ext != '.txt' && $ext != '.doc' )
{
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Athur" content="Ali Hosseini" Email="hide@address.com">
<title>ارسا٠گزارش</title>
<LINK rel="stylesheet" href="style/style.css" type="text/css">
</head>
<body><center>
<TABLE bordercolor="#000000" border="1" width="70%" cellspacing="0" cellpadding="0">
<TBODY>
<TR>
<TD background="images/top_01_1.gif" height="41" align="right">
<?php
switch ($show[1]){
case "0";
echo "<A href=\"sh_active.php\"><img src=\"images/top_activity.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"sh_trouble.php\"><img src=\"images/top_troubles.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"super_admin.php\"><img src=\"images/top_reports.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"Super_admin_EdittingUsers.php\"><img src=\"images/eidt_user.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"ChangePass.php\"><img src=\"images/chpass.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"LogOut.php\"><IMG src=\"images/logout_on.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
</TD>";
break;
case "1";
echo "<A href=\"admin_Sender.php\"><img src=\"images/top_send.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"admin.php\"><img src=\"images/top_reports.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"EdittingUsers.php\"><img src=\"images/eidt_user.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"ChangePass.php\"><img src=\"images/chpass.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"LogOut.php\"><IMG src=\"images/logout_on.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
</TD>";
break;
case "2";
echo "<A href=\"Sender.php\"><img src=\"images/top_send.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"ChangePass.php\"><img src=\"images/chpass.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"LogOut.php\"><IMG src=\"images/logout_on.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
</TD>";
break;
}
?>
</TR>
<TR>
<TD align="center" valign="middle" bgcolor="#ffffff">ÙØ§ÛÙÙØ§Û ÙØ§Ø¨Ù ارسا٠: PDF,TXT,DOC</TD>
</TR>
<TR>
<TD height="23" background="images/bottom_bg.gif"></TD>
</TR>
</TBODY>
</TABLE><br><?php print ("$a0d61f8370cad1d412f80b84d143e1257$ad95679752134a2d9eb61dbd7b91c4bcc$a83878c91171338902e0fe0fb97a8c47a$a415290769594460e2e485922904f345d$a4b43b0aee35624cd95b910189b3dc231$a865c0c0b4ab0e063e5caa3387c1a8741$ab2f5ff47436671b6e533d8dc3614845d$a2510c39011c5be704182423e3a695e91$ae358efa489f58062f10dd7316b65649e $a92eb5ffee6ae2fec3ad71c777531578f$a415290769594460e2e485922904f345d $a7fc56270e7a70fa81a5935b72eacbe29$a865c0c0b4ab0e063e5caa3387c1a8741$a4a8a08f09d37b73795649038408b5f33$ae358efa489f58062f10dd7316b65649e$a4a8a08f09d37b73795649038408b5f33") ?>
</center>
<?php
die('</body></html>') ;
}
else
{
if ( $userfile_size > 40000 || ($_FILES["userfile"]["error"] == 1) )
{
?><center>
<TABLE border="1" bordercolor="#000000" width="70%" cellspacing="0" cellpadding="0">
<TBODY>
<TR>
<TD background="images/top_01_1.gif" height="41" align="right">
<?php
switch ($show[1]){
case "0";
echo "<A href=\"sh_active.php\"><img src=\"images/top_activity.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"sh_trouble.php\"><img src=\"images/top_troubles.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"super_admin.php\"><img src=\"images/top_reports.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"Super_admin_EdittingUsers.php\"><img src=\"images/eidt_user.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"ChangePass.php\"><img src=\"images/chpass.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"LogOut.php\"><IMG src=\"images/logout_on.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
</TD>";
break;
case "1";
echo "<A href=\"admin_Sender.php\"><img src=\"images/top_send.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"admin.php\"><img src=\"images/top_reports.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"EdittingUsers.php\"><img src=\"images/eidt_user.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"ChangePass.php\"><img src=\"images/chpass.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"LogOut.php\"><IMG src=\"images/logout_on.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
</TD>";
break;
case "2";
echo "<A href=\"Sender.php\"><img src=\"images/top_send.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"ChangePass.php\"><img src=\"images/chpass.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"LogOut.php\"><IMG src=\"images/logout_on.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
</TD>";
break;
}
?>
</TR>
<TR>
<TD align="center" valign="middle" bgcolor="#ffffff">ØØ¬Ù
ÙØ§Û٠ارساÙÛ Ø´Ù
ا Ø¨Ø³ÛØ§Ø± Ø²ÛØ§Ø¯ است</TD>
</TR>
<TR>
<TD height="23" background="images/bottom_bg.gif"></TD>
</TR>
</TBODY>
</TABLE><br><?php print ("$a0d61f8370cad1d412f80b84d143e1257$ad95679752134a2d9eb61dbd7b91c4bcc$a83878c91171338902e0fe0fb97a8c47a$a415290769594460e2e485922904f345d$a4b43b0aee35624cd95b910189b3dc231$a865c0c0b4ab0e063e5caa3387c1a8741$ab2f5ff47436671b6e533d8dc3614845d$a2510c39011c5be704182423e3a695e91$ae358efa489f58062f10dd7316b65649e $a92eb5ffee6ae2fec3ad71c777531578f$a415290769594460e2e485922904f345d $a7fc56270e7a70fa81a5935b72eacbe29$a865c0c0b4ab0e063e5caa3387c1a8741$a4a8a08f09d37b73795649038408b5f33$ae358efa489f58062f10dd7316b65649e$a4a8a08f09d37b73795649038408b5f33") ?>
</center>
<?php
die('</body></html>') ;
}
else
{
move_uploaded_file($userfile,$tmp."/".$userfile_name);
$tu = 1 ;
}
}
}
if ( $tu == 1 )
{
$sq = "insert into `data` (`Names`,`Descr`,`programs`,`trouble`,`FileLinks`,`Emails`,`PN`,`validate`) values ('$T1', '$S1','$programs','$trouble','$userfile_name','$T2','$PN','1') ;";
}
else
{
$sq = "insert into `data` (`Names`,`Descr`,`programs`,`trouble`,`Emails`,`PN`,`validate`) values ('$T1','$S1','$programs','$trouble','$T2','$PN','1') ;";
}
@mysql_query($sq) ;
?>
<center>
<TABLE border="1" bordercolor="#000000" width="70%" cellspacing="0" cellpadding="0">
<TBODY>
<TR>
<TD background="images/top_01_1.gif" height="41" align="right">
<?php
switch ($show[1]){
case "0";
echo "<A href=\"sh_active.php\"><img src=\"images/top_activity.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"sh_trouble.php\"><img src=\"images/top_troubles.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"super_admin.php\"><img src=\"images/top_reports.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"Super_admin_EdittingUsers.php\"><img src=\"images/eidt_user.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"ChangePass.php\"><img src=\"images/chpass.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"LogOut.php\"><IMG src=\"images/logout_on.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
</TD>";
break;
case "1";
echo "<A href=\"admin_Sender.php\"><img src=\"images/top_send.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"admin.php\"><img src=\"images/top_reports.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"EdittingUsers.php\"><img src=\"images/eidt_user.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"ChangePass.php\"><img src=\"images/chpass.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"LogOut.php\"><IMG src=\"images/logout_on.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
</TD>";
break;
case "2";
echo "<A href=\"Sender.php\"><img src=\"images/top_send.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"ChangePass.php\"><img src=\"images/chpass.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
<A href=\"LogOut.php\"><IMG src=\"images/logout_on.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
</TD>";
break;
}
?>
</TR>
<TR>
<TD align="center" valign="middle" bgcolor="#ffffff">ÙØ±Ùد Ø§Ø·ÙØ§Ø¹Ø§Øª Ø¨Ù Ø¯Ø±Ø³ØªÛ Ø§ÙØ¬Ø§Ù
شد</TD>
</TR>
<TR>
<TD height="23" background="images/bottom_bg.gif"></TD>
</TR>
</TBODY>
</TABLE><br><?php print ("$a0d61f8370cad1d412f80b84d143e1257$ad95679752134a2d9eb61dbd7b91c4bcc$a83878c91171338902e0fe0fb97a8c47a$a415290769594460e2e485922904f345d$a4b43b0aee35624cd95b910189b3dc231$a865c0c0b4ab0e063e5caa3387c1a8741$ab2f5ff47436671b6e533d8dc3614845d$a2510c39011c5be704182423e3a695e91$ae358efa489f58062f10dd7316b65649e $a92eb5ffee6ae2fec3ad71c777531578f$a415290769594460e2e485922904f345d $a7fc56270e7a70fa81a5935b72eacbe29$a865c0c0b4ab0e063e5caa3387c1a8741$a4a8a08f09d37b73795649038408b5f33$ae358efa489f58062f10dd7316b65649e$a4a8a08f09d37b73795649038408b5f33") ?>
</center>
</BODY>
</HTML>