Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 3.148.223.53
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/public/news-articles/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/public/news-articles/article-convert2html.php
<?php
ob_start();
session_start();
require_once('session-check.php');
require_once('include/db-config.php');
$r = $_GET['r'];
$articleid = $_GET['articleid']; 

// all article links details
$sql="select ID, ArticleTitle, ArticleType, FileOrUrl, TargetPage, SortOrder, Status, EditedDate from maintrainer_articles where Status = 1  order by SortOrder asc";
$result=mysql_query($sql);

// new article details
$sql2="select ID, ArticleTitle, HTMLContent, ArticleType, FileOrUrl, TargetPage, SortOrder, Status, EditedDate from maintrainer_articles where ID = ".$articleid;
$result2=mysql_query($sql2);
if($row2=mysql_fetch_array($result2))
{
	$HTMLContent = $row2['HTMLContent'];
	$articletype2 = $row2['ArticleType'];
}

// UPDATING ARTICLES MAIN PAGE WITH ALL ARTICLE LINKS
$html_content = '
<HTML>
<HEAD>
<TITLE>Joel Levitt, maintenance management, maintenance management consulting, tpms</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link href="../css/style.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"></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="index.html">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">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">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">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="shopCategory.php?categoryRefId=1">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="newsletter.php">Newsletter</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">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">Onsite 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">Contact Us</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:">
            <form action="articles.php" name="form1" enctype="multipart/form-data" method="post">
				<tr><td style="height:9px;"></td></tr>
                <tr>
					<td style="width:9px;"></td>
					<td style="width:940px;" class="content_bg" valign="top">
                    	<table border="0" cellpadding="0" cellspacing="0" width="100%">
                        	<tr>
                            	<td valign="middle" width="100%">
                                	<table border="0" cellpadding="0" cellspacing="0" width="100%">
                                    	<tr>
                                        	<td valign="middle" width="60%" align="left" class="main_head" style="padding:15px;">Articles</td>
                                            <td align="right" valign="middle" width="40%" style="padding-right:25px;">
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr><td align="left" style="padding-left:15px;"><img src="../images/large-line2.gif" border="0"></td>
                            </tr>
                            
                            <tr>
                            	<td style="padding:15px;" class="article">
								
								<ul style="line-height:25px;">';
									while($row=mysql_fetch_array($result))
									{
										$ID = $row['ID'];
										$ArticleTitle = $row['ArticleTitle'];
										$ArticleType = $row['ArticleType'];
										if($ArticleType == "html")
										{
											$FileOrUrl = "../articles/".$ID.".html";
										}
										else if($ArticleType == "docs")
										{
											$FileOrUrl = "../news-articles/".$row['FileOrUrl'];
										}
										else
										{
											$FileOrUrl = "../".$row['FileOrUrl'];
										}
										$TargetPage = $row['TargetPage'];
										$SortOrder = $row['SortOrder'];
										$html_content = $html_content. '<li><a target="'.$TargetPage.'" href="'.$FileOrUrl.'">'.$ArticleTitle.'</a></li>';
									}
									$html_content = $html_content. '
									</ul>                                   
                                </td>
                            </tr>
                        </table>
					</td>


					<td style="width:9px;"></td>
				</tr>
                <tr><td style="height:9px;"></td></tr>
                </form>
			</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="index.html">Home</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="aboutus.html">About Us</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                     <a href="links/index.html">Resources</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="articles.html">Articles</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="shopCategory.php?categoryRefId=1">Shop</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="publicsessions.html">Public Sessions</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="onsitetraining.html">Onsite Training</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="contactus.html">Contact Us</a>
                </td>
                <td align="right" class="footer_nav">
                     � 2010 Springfield Resources. All Rights Reserved
                    <!--<br /><font color="#3F4473">Developed by Axel Technologies</font>-->
                </td>
            </tr>
        </table>
    </TD>
</TR>
</TABLE>
</BODY>
</HTML>';

$fh = fopen("../cms/articles.html", "w");
fwrite($fh, $html_content);
fclose($fh);

// CREATING NEW ARTICLES HTML PAGE
$html_content = '';
$html_content = '
<HTML>
<HEAD>
<TITLE>Joel Levitt, maintenance management, maintenance management consulting, tpms</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link href="../css/style.css" type="text/css" rel="stylesheet">
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<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"></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="../index.html">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">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">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">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="../shopCategory.php?categoryRefId=1">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="../newsletter.php">Newsletter</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">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">Onsite 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">Contact Us</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:940px;" class="content_bg" valign="top">
					<div style="padding:20px;" class="normal_text">';
					$html_content = $html_content. $HTMLContent.'
					</div>
				</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" width="980" align="center">
            <tr>
                <td align="left" width="70%" class="footer_nav">
                    <a href="../index.html">Home</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="../aboutus.html">About Us</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="../links/index.html">Resources</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="../articles.html">Articles</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="../shopCategory.php?categoryRefId=1">Shop</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                   <!-- <a href="../newsletter.php">Newsletter</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp; -->
                    <a href="../publicsessions.html">Public Sessions</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="../onsitetraining.html">Onsite Training</a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;
                    <a href="../contactus.html">Contact Us</a>
                </td>
                <td align="right" width="30%" class="footer_nav">
                    � 2010 Springfield Resources. All Rights Reserved
                    <!--<br /><font color="#3F4473">Developed by Axel Technologies</font>-->
                </td>
            </tr>
        </table>
    </TD>
</TR>
</TABLE>
</BODY>
</HTML>';
if($articletype2 == "html")
{
	$filename = "../articles/".$articleid.".html";
	$fh = fopen($filename, "w");
	fwrite($fh, $html_content);
	fclose($fh);
}
$url = "Location: article-mgt.php?r=".$r;
header($url);
?>

Anon7 - 2022
AnonSec Team