KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/abtechsci/mmc15/ezupload/cp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/abtechsci/mmc15/ezupload/cp/pfm.php
<?php

require("public_header.php");

$page=$_POST["page"];
$query=$_POST["query"];

$submit=$_POST["submit"];

$title=$_POST["title"];
$content=$_POST["content"];


if($submit != "" )
{
	if( $submit == "Email All Uploaders" )
	{	
		$setting=new settings();
		$temp=$setting->get();
		$adminemail=$temp[0]->adminemail;
		
		$emailbrowser=new browser();
		$temp=$emailbrowser->get_emaillist() ;
		for( $e=0; $e < count($temp) ; $e++ )
		{				
			$email=$temp[$e]->email;

			$postoffice=new postoffice() ;
			$postoffice->from=$adminemail;
			$postoffice->to=$email;
			$postoffice->subject=$title;
			$postoffice->email_body=$content;
			$emailstatus=$postoffice->send();
			
		}
			
		if($emailstatus==1)
		{
			//echo "<font color=red ><b>The email was successfully sent!</b></font>";  
			$title="" ;
			$content="";
		} 
		else 
		{  
			//echo "<font color=red ><b>Sorry but the email could not be sent. Please go back and try again!</b></font>" ;  
		}
		
	}
	else
	{		
		if($submit=="Search" )
		{	$page=1;			
		}
		elseif($submit=="Next" )
		{	$page=$page + 1;
		}
		elseif($submit=="Prev" )
		{	$page=$page - 1 ;
		}
	}
	
}

if($page < 1 ) { $page=1 ;}
$start = ( $page-1 ) * 10 ;

$browser=new browser();

if($query == "" ){
	$temp=$browser->get( $start , $start + 10 );
}
else{
	$temp=$browser->search( $query, $start , $start + 10 );
}
?>



<HTML><HEAD><TITLE>Control Panel</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">

<LINK href="f_files/global.css" type=text/css rel=stylesheet>



</HEAD>
<BODY >
<div align="center">
	<table border="1" cellpadding="0" cellspacing="0" width="100" bordercolor="#000000" id="table1">
		<tr>
			<td>
<TABLE height="435" cellSpacing=0 cellPadding=0 width="770" id="table2" bgcolor="#FFFFFF">
  <TR>
    <TD vAlign=top height=150 width="341">
	<img border="0" src="f_files/header_home.jpg" width="770" height="150"></TD></TR>
  <?php //require("public_login_status.php"); ?>
  <TR>
    <TD height=13 width="744" bgcolor="#C1D1FF">&nbsp;
            </TD>
    </TR>
	<tr>
    <TD height=259 bgcolor="#FFFFFF">
            <div align="center">
				<table border="0" cellpadding="0" cellspacing="0" width="748" id="table3" height="208">
					<tr>
						<td height="14" width="748"></td>
					</tr>
					<tr>
						<td height="146">
						<div align="center">
							<table border="1" cellpadding="0" cellspacing="0" width="583" id="table4" height="97" bordercolor="#8FABFF">
								<tr>
									<td height="21" bgcolor="#C1D1FF" width="579" valign="middle" colspan="4">
									<p align="center"><b>Upload Manager</b></td>
								</tr>
								<tr>
									<td height="18" bgcolor="#EAEFFF" align="center">
										<b>Uploaded by</b></td>
									<td height="18" bgcolor="#EAEFFF" align="center">
										<b>Number of files</b></td>
									<td height="18" bgcolor="#EAEFFF" align="center">
										<b>Date</b></td>
								</tr>

					<?php
						for( $a=0; $a < count($temp) && $a < 10 ; $a++ )
						{
						$id=$temp[$a]->id;
						$name=$temp[$a]->name;
						$dt=$temp[$a]->dt;
						$desc=$temp[$a]->desc;
					?> 
  
					<tr onClick="window.location.href='pfd.php?uid=<?php echo $id; ?>'" onMouseOver="this.style.cursor='hand';" >                      
                      <td valign="middle" height="20" width="120"><A  href="pfd.php?uid=<?php echo $id; ?>"><?php echo $name ; ?></td>  
                      <td valign="middle" height="20" width="114"><?php echo $desc ; ?> Files</td>
                      <td valign="middle" height="20" width="118"><?php echo $dt ; ?></td>     			  
					</tr>
                    <?php 
						}
					?>	
					
								<tr>
									<td height="17" width="120" bgcolor="#EAEFFF">&nbsp;
										</td>
									<td height="17" width="114" bgcolor="#EAEFFF">&nbsp;
										</td>
									<td height="17" width="118" bgcolor="#EAEFFF">&nbsp;
										</td>
								</tr>
							</table>
						</div>
						<p></td>
					</tr>
					
					<TR>
                      <TD >
                        <TABLE border="1" cellpadding="0" cellspacing="0" align=center bordercolor="#8FABFF" >
                          <FORM action=pfm.php method=post>
						  <INPUT type=hidden value="<?php echo $page ; ?>" name=page > 
                          <TBODY>
                          <TR>
                            <TD align=left>
							<INPUT name=query value="<?php echo $query ; ?>" size="20" >&nbsp;
							<INPUT type=submit value=Search name=submit >
							</TD>
                            <TD align=right>
							<INPUT type=submit value=Next name=submit > 
							<?php if($page >1 ){ ?>
							<INPUT type=submit value=Prev name=submit > 
                            <?php } ?>
							</TD></TR></FORM></TBODY></TABLE>
						</TD>
					</TR>

<tr>
						<td>
						<p align="center">&nbsp;</p></form>
						<p align="center"><br>
&nbsp;</td>
					</tr>

						<tr>
    <TD height=13 bgcolor="#C1D1FF">
	<p align="center">� 
      2007 Smart Report Maker. All rights reserved. </TD>
	</tr>
			</TABLE>
 			</td>
		</tr>
	</table>
</div>
<p align="center">&nbsp;</p>
 </BODY></HTML>

Anon7 - 2021