Server IP : 127.0.0.2 / Your IP : 18.191.223.26 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 : |
<?php ob_start(); session_start(); require_once('session-check.php'); require_once('include/db-config.php'); if(!isset($_GET['seo'])) { $mdlmaintitle=mysqli_real_escape_string($conn,stripslashes($_POST['mdlmaintitle'])); $mdlmainconent=mysqli_real_escape_string($conn,stripslashes($_POST['mdlmainconent'])); $imgname=mysqli_real_escape_string($conn,stripslashes($_POST['imgname'])); $imgtitle=mysqli_real_escape_string($conn,stripslashes($_POST['imgtitle'])); $imgname2=mysqli_real_escape_string($conn,stripslashes($_POST['imgname2'])); $imgtitle2=mysqli_real_escape_string($conn,stripslashes($_POST['imgtitle2'])); $rhtbx1head=mysqli_real_escape_string($conn,stripslashes($_POST['rhtbx1head'])); $rhtbx1content=mysqli_real_escape_string($conn,stripslashes($_POST['rhtbx1content'])); $rhtbx1read=mysqli_real_escape_string($conn,stripslashes($_POST['rhtbx1read'])); $rhtbx2head=mysqli_real_escape_string($conn,stripslashes($_POST['rhtbx2head'])); $rhtbx2content=mysqli_real_escape_string($conn,stripslashes($_POST['rhtbx2content'])); $rhtbx2read=mysqli_real_escape_string($conn,stripslashes($_POST['rhtbx2read'])); $rhtbx3head=mysqli_real_escape_string($conn,stripslashes($_POST['rhtbx3head'])); $rhtbx3content=mysqli_real_escape_string($conn,stripslashes($_POST['rhtbx3content'])); $rhtbx3read=mysqli_real_escape_string($conn,stripslashes($_POST['rhtbx3read'])); $sql="update maintrainer_home3 set MiddleMainTitle='".$mdlmaintitle."',MiddleMainContent='".$mdlmainconent."',ImageName='".$imgname."',ImageTitle='".$imgtitle."' , ImageName2='".$imgname2."',ImageTitle2='".$imgtitle2."' , RightBox1Heading='".$rhtbx1head."',RightBox1Content='".$rhtbx1content."',RightBox1ReadMore='".$rhtbx1read."', RightBox2Heading='".$rhtbx2head."',RightBox2Content='".$rhtbx2content."',RightBox2ReadMore='".$rhtbx2read."', RightBox3Heading='".$rhtbx3head."',RightBox3Content='".$rhtbx3content."',RightBox3ReadMore='".$rhtbx3read."' where ID=1"; // echo $sql; //exit; $result=mysqli_query($conn,$sql); } $sql= "Select * from maintrainer_home3"; $result=mysqli_query($conn,$sql)or die(mysqli_error()); while($row=mysqli_fetch_array($result)) { $ID = $row['ID']; $MiddleMainTitle = $row['MiddleMainTitle']; $MiddleMainContent = $row['MiddleMainContent']; $ImageName = $row['ImageName']; $ImageTitle = $row['ImageTitle']; $ImageName2 = $row['ImageName2']; $ImageTitle2 = $row['ImageTitle2']; $RightBox1Heading = $row['RightBox1Heading']; $RightBox1Content = $row['RightBox1Content']; $RightBox1ReadMore=$row['RightBox1ReadMore']; $RightBox2Heading = $row['RightBox2Heading']; $RightBox2Content = $row['RightBox2Content']; $RightBox2ReadMore=$row['RightBox2ReadMore']; $RightBox3Heading = $row['RightBox3Heading']; $RightBox3Content = $row['RightBox3Content']; $RightBox3ReadMore=$row['RightBox3ReadMore']; } $PageTitle = ""; $MetaKeyword = ""; $MetaDescription = ""; $OtherScript = ""; $sql_seo= "select PageID, PageTitle, MetaKeyword, MetaDescription, OtherScript from seo_details where PageID = 'Home' "; $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']; } $home_page_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/home.css" type="text/css" rel="stylesheet" > </head> <body> <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="newsletter.html" title="Newsletter">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" 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:10px;" valign="middle" colspan="7" align="left"></td></tr> <tr> <td style="width:9px;"></td> <td style="width:620px; padding:30px;" class="content_bg" valign="top"> <table border="0" cellpadding="0" cellspacing="0">'; if(trim($MiddleMainTitle) != "") { $home_page_content = $home_page_content. ' <tr> <td align="center"><h1>'.$MiddleMainTitle.'</h1></td> </tr>'; } $home_page_content = $home_page_content. ' <tr> <td class="lp_text" style="padding-top:30px; padding-bottom:20px;">'.$MiddleMainContent.'</td> </tr> <tr> <td align="center" class="img_text"> <table style="width:620px; background-color:#CCCCCC;" align="center" cellpadding="0" cellspacing="1">'; if(trim($ImageName) != "") { $home_page_content = $home_page_content. ' <tr><td><img width="620" src="admin/upload/'.$ImageName.'" class="img_border" alt=""></td></tr>'; } $home_page_content = $home_page_content. ' <br>'; if(trim($ImageTitle) != "") { $home_page_content = $home_page_content. ' <tr><td align="center" style="padding:8px; color:#000; font-size:12px;">'.$ImageTitle.'</td></tr>'; } $home_page_content = $home_page_content. ' </table> </td> </tr> <tr> <td style="padding-top:30px; font-size:15px;">Please enter your email to download Free course catalog for maintenance management training.<!--Please enter your email to download free course catelog with information, outlines and benefits.--></td> </tr> <tr> <td style="padding-top:10px;"> <form action="email_signup.php" method="post" style="padding:0px; margin:0px;"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td> <input type="text" name="emailid" id="emailid" class="homeemail"> </td> <td style="padding-left:10px;"> <input type="image" src="images/button_home.png" border="0" width="135" height="31" /> </td> </tr> </table> </form> </td> </tr> </table> </td> <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:15px;"></td></tr>'; if(trim($RightBox1Heading) != "" and trim($RightBox1Content) != "") { if(trim($RightBox1ReadMore) != "") $link = " onmouseover=\"this.style.cursor='pointer'\" onclick=\"window.location='http://maintenancetraining.com/".$RightBox1ReadMore."'\" >"; else $link = ">"; $home_page_content = $home_page_content. ' <tr> <td class="homebox_style3" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head3" valign="top"><h2>'.$RightBox1Heading.'</h2></td> </tr> <tr> <td class="box_text2" valign="top">'.$RightBox1Content.'</td> </tr> </table> </td> </tr> <tr><td style="height:25px;"></td></tr>'; } if(trim($RightBox2Heading) != "" and trim($RightBox2Content) != "") { if(trim($RightBox2ReadMore) != "") $link = " onmouseover=\"this.style.cursor='pointer'\" onclick=\"window.location='http://maintenancetraining.com/".$RightBox2ReadMore."'\" >"; else $link = ">"; $home_page_content = $home_page_content. ' <tr> <td class="homebox_style3" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head3" valign="top"><h2>'.$RightBox2Heading.'</h2></td> </tr> <tr> <td class="box_text2" valign="top">'.$RightBox2Content.'</td> </tr> </table> </td> </tr> <tr><td style="height:25px;"></td></tr>'; } if(trim($RightBox3Heading) != "" and trim($RightBox3Content) != "") { if(trim($RightBox3ReadMore) != "") $link = " onmouseover=\"this.style.cursor='pointer'\" onclick=\"window.location='http://maintenancetraining.com/".$RightBox3ReadMore."'\" >"; else $link = ">"; $home_page_content = $home_page_content. ' <tr> <td class="homebox_style3" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head3" valign="top"><h2>'.$RightBox3Heading.'</h2></td> </tr> <tr> <td class="box_text2" valign="top">'.$RightBox3Content.'</td> </tr> </table> </td> </tr> <tr><td style="height:25px;"></td></tr>'; } if(trim($ImageName2) != "") { $home_page_content = $home_page_content. ' <tr><td align="center"> <table style="width:210px; background-color:#CCCCCC;" align="center" cellpadding="0" cellspacing="1"> <tr><td><img width="210" src="admin/upload/'.$ImageName2.'" class="img_border" alt=""></td></tr> <br> <tr><td align="center" style="padding:8px; color:#000; font-size:12px;">'.$ImageTitle2.'</td></tr> </table> </td></tr>'; } $home_page_content = $home_page_content. ' <tr><td style="height:10px;"></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> | <a href="aboutus.html" title="About Us">About Us</a> | <a href="links/index.html" title="Resources">Resources</a> | <a href="articles.html" title="Articles">Articles</a> | <a href="shophome.php" title="Shop">Shop</a> | <a href="publicsessions.html" title="Public Sessions">Public Sessions</a> | <a href="onsitetraining.html" title="In-House Training">In-House Training</a> | <a href="contactus.html" title="Contact Us">Contact Us</a> | <a href="unsubscribe.php" title="Unsubscribe">Unsubscribe</a> </td> <td align="right" class="footer_nav"> © 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("../cms/index.html", "w"); $fh = fopen("../index.html", "w"); fwrite($fh, $home_page_content); fclose($fh); if(isset($_GET['seo'])) { header( 'Location: publicsessions-convert2html.php?seo=1'); header($url); } else { header( 'Location: home-mgt3.php'); header($url); } ?>