Server IP : 127.0.0.2 / Your IP : 3.12.123.254 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($_POST['saving'])){ $titlebox = $_POST['boxtitle']; // var_dump($titlebox);die; foreach($titlebox as $key=>$data){ // $filename = $_FILES["BoxImage".$data.""]; $filename1 = $_FILES["BoxImageUpdate" . $data]["name"]; // $tempname = $_FILES["BoxImage"]["tmp_name"]; $tempname1 = $_FILES["BoxImageUpdate" . $data]["tmp_name"]; $folder = "/var/www/html/admin/images/" . $filename1; //var_dump($filename);die; if($filename1 !=""){ $uploadOk = 1; $imageFileType = strtolower(pathinfo($filename1, PATHINFO_EXTENSION)); // var_dump($imageFileType);die; if (isset($_POST["submit"])) { $check = getimagesize($tempname1); if ($check === false) { echo "File is not an image."; $uploadOk = 0; } } if ($_FILES["BoxImage"]["size"] > 500000) { echo "Sorry, your file is too large."; $uploadOk = 0; } // $allowedFormats = array("jpg", "jpeg", "png", "gif"); // if (!in_array($imageFileType, $allowedFormats)) { // echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed."; // $uploadOk = 0; // } if ($uploadOk == 0) { echo "Sorry, your file was not uploaded."; } else { if (move_uploaded_file($tempname1, $folder)) { echo "The file " . $filename1 . " has been uploaded to " . $folder; // Here you can add code to save the filename or file path to the database, if needed. } else { echo "Sorry, there was an error uploading your file."; } } } // var_dump($filename);die; $boxtittle = $_POST["BoxTitle".$data.""]; $boxcontents = htmlentities($_POST["BoxContent".$data.""]); $readmorelinking = $_POST["ReadMoreLink".$data.""]; $sql = "Select * from maintrainer_home2 where ID = $data"; $result = mysqli_query($conn,$sql); $row = mysqli_fetch_array($result); if($row){ if($boxtittle != $row['BoxTitle'] || $boxcontents != htmlentities($row['BoxContent'])|| $readmorelinking != $row['ReadMoreLink'] || $filename1 != $row['BoxImage']){ // var_dump($filename["name"]);die; // $boximage = $filename["name"]; if($filename1 !=""){ $sqlupdate ="UPDATE maintrainer_home2 SET BoxTitle = '$boxtittle', BoxContent = '$boxcontents',ReadMoreLink='$readmorelinking',BoxImage='$filename1' WHERE ID = $data"; }else{ $sqlupdate ="UPDATE maintrainer_home2 SET BoxTitle = '$boxtittle', BoxContent = '$boxcontents',ReadMoreLink='$readmorelinking' WHERE ID = $data"; } $result2 =mysqli_query($conn,$sqlupdate); } } else{ // print_r('hlo');die; $orderof = $_POST["orderdataof"]; // print_r($orderof);die; $boxtittle = $_POST["BoxTitle"]; $boxcontents = $_POST["BoxContent"]; $readmorelinking = $_POST["ReadMoreLink"]; $CreatedDate = date("Y-m-d h:i:s "); $EditedDate = date("Y-m-d h:i:s"); $totalUsername = sizeof($boxtittle); // print_r($totalUsername); // $targetDir = "images/"; // Folder to store the uploaded images // $targetFile = $targetDir . basename($_FILES["BoxImage".$data]['name']); // $filename = $_FILES["BoxImage"]["name"]; // $tempname = $_FILES["BoxImage"]["name"]; // $folder = "/var/www/html/admin/images".$filename; // // var_dump($tempname);die(); // $uploadOk = 1; // $imageFileType = strtolower(pathinfo($filename, PATHINFO_EXTENSION)); // if (isset($_POST["submit"])) { // $check = getimagesize($_FILES["BoxImage".$data]['tmp_name']); // if ($check === false) { // echo "File is not an image."; // $uploadOk = 0; // } // } // if ($_FILES["BoxImage".$data]['size'] > 500000) { // echo "Sorry, your file is too large."; // $uploadOk = 0; // } // $allowedFormats = array("jpg", "jpeg", "png", "gif"); // if (!in_array($imageFileType, $allowedFormats)) { // echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed."; // $uploadOk = 0; // } // if ($uploadOk == 0) { // echo "Sorry, your file was not uploaded."; // } else { // // If everything is fine, try to upload the file // // if (move_uploaded_file($_FILES["BoxImage".$data]['tmp_name'], $folder)) { // // echo "The file " . basename($_FILES["BoxImage".$data]['name']) . " has been uploaded."; // // // Save the file path to the database or do further processing if needed. // // } else { // // echo "Sorry, there was an error uploading your file."; // // } // if (move_uploaded_file($filename, $folder)) { // echo "The file " . $filename . " has been uploaded to " . $folder; // // Here you can add code to save the filename or file path to the database, if needed. // } else { // echo "Sorry, there was an error uploading your file."; // } // } $filename = $_FILES["BoxImage"]["name"]; $tempname = $_FILES["BoxImage"]["tmp_name"]; $folder = "/var/www/html/admin/images/" . $filename; $uploadOk = 1; $imageFileType = strtolower(pathinfo($filename, PATHINFO_EXTENSION)); if (isset($_POST["submit"])) { $check = getimagesize($tempname); if ($check === false) { echo "File is not an image."; $uploadOk = 0; } } if ($_FILES["BoxImage"]["size"] > 500000) { echo "Sorry, your file is too large."; $uploadOk = 0; } $allowedFormats = array("jpg", "jpeg", "png", "gif"); if (!in_array($imageFileType, $allowedFormats)) { echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed."; $uploadOk = 0; } if ($uploadOk == 0) { echo "Sorry, your file was not uploaded."; } else { if (move_uploaded_file($tempname, $folder)) { echo "The file " . $filename . " has been uploaded to " . $folder; } else { echo "Sorry, there was an error uploading your file."; } } // var_dump($filename);die(); for($i=0;$i<=$totalUsername;$i++) { $Insertorderof = $orderof[$i]; $Insertboxtittle = $boxtittle[$i]; $Insertboxcontents = $boxcontents[$i]; $Insertreadmorelinking = $readmorelinking[$i]; $sqladddata = "INSERT INTO `maintrainer_home2` ( `Order`, `BoxTitle`, `BoxContent`, `ReadMoreLink`,`BoxImage`,`CreatedDate`,`EditedDate`) VALUES ( '$Insertorderof', '$Insertboxtittle', '$Insertboxcontents', '$Insertreadmorelinking','$filename','$CreatedDate','$EditedDate')"; // print_r($sqladddata);die(); $result2 = mysqli_query($conn,$sqladddata)or die(mysqli_error()); header( 'Location: home-mgt2.php'); } // // } // header( 'Location: home-mgt2.php'); } } header( 'Location: home-mgt2.php'); } // $orderof=$_POST["orderdataof"]; // print_r($id1);die; $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" > <script language="JavaScript"> function getQueryVar(varName) { var queryStr = unescape(window.location.search) + \'&\'; var regex = new RegExp(\'.*?[&\\?]\' + varName + \'=(.*?)&.*\'); val = queryStr.replace(regex, "$1"); return val == queryStr ? false : val; } var querystring = getQueryVar(\'download\'); if(querystring boxtittle== "yes") { window.open("http://maintenancetraining.com/file/Complete Seminar Guide and book List.pdf", "Complete Seminar Guide and book List", "_blank"); } </script> </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>htmlentities </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>htmlentities <td><img src="images/top_nav_line.gif" border="0" style="width:2px; hhtmlentities <!--<td class="top_nav"><a href="newsletter.html" title="Newsletter">htmlentities <td><img src="images/top_nav_line.gif" border="0" style="width:2px; hhtmlentities-> <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>htmlentities <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:30px; padding-left:10px; color:#999999;" valign="middle" colspan="7" align="left"> <table border="0" width="100%"> <tr> <td width="70%" align="left" style="color:#999999;"> Please click the seminar description box to find complete details, agendas and support materials </td> <td width="30%" align="right"> <a href="search.html"><img src="images/search.png" border="0"></a> </td> </tr> </table> </td> </tr> <tr> <td valign="middle" colspan="7" align="left"> <div style="margin-left:10px; margin-right: 10px; color:#FFF; margin-bottom: 10px; color:#000; border-style: solid; border-width:1px; border-color:#FFF; font-size:14px; height:28px; background-color: #FFF; padding-top:7px;" id="download_msg"> Thank you for downloading catalog of classes. Use these boxes below to get additional information and to get a proposal. </div> </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:15px;"></td></tr> '; if(true) { $link = " onmouseover=\"this.style.cursor='pointer'\" onclick=\"window.location='http://maintenancetraining.com/file/Complete Seminar Guide and book List.pdf'\" >"; $home_page_content = $home_page_content. ' <tr> <td class="homebox_style1" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head2" valign="top"><h2>Course Catalog</h2></td> </tr> <tr> <td class="box_text2" valign="top"> <img src="images/adobe-pdf-icon.png" border="0" style="float:left; padding-right:10px;"> Click here to download an additional PDF catalog</td> </td> </tr> </table> </td> </tr> <tr><td style="height:25px;"></td></tr> '; } if(trim($LeftBox1Heading) != "" and trim($LeftBox1Content) != "") { if(trim($LeftBox1ReadMore) != "") $link = " onmouseover=\"this.style.cursor='pointer'\" onclick=\"window.location='http://maintenancetraining.com/".$LeftBox1ReadMore."'\" >"; else $link = ">"; $home_page_content = $home_page_content. ' <tr> <td class="homebox_style1" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head2" valign="top"><h2>'.$LeftBox1Heading.'</h2></td> </tr> <tr> <td class="box_text2" valign="top">'.$LeftBox1Content.'</td> </tr> </table> </td> </tr> <tr><td style="height:25px;"></td></tr> '; } if(trim($LeftBox2Heading) != "" and trim($LeftBox2Content) != "") { if(trim($LeftBox2ReadMore) != "") $link = " onmouseover=\"this.style.cursor='pointer'\" onclick=\"window.location='http://maintenancetraining.com/".$LeftBox2ReadMore."'\" >"; else $link = ">"; $home_page_content = $home_page_content. ' <tr> <td class="homebox_style1" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head2" valign="top"><h2>'.$LeftBox2Heading.'</h2></td> </tr> <tr> <td class="box_text2" valign="top">'.$LeftBox2Content.'</td> </tr> </table> </td> </tr> <tr><td style="height:25px;"></td></tr>'; } if(trim($LeftBox3Heading) != "" and trim($LeftBox3Content) != "") { if(trim($LeftBox3ReadMore) != "") $link = " onmouseover=\"this.style.cursor='pointer'\" onclick=\"window.location='http://maintenancetraining.com/".$LeftBox3ReadMore."'\" >"; else $link = ">"; $home_page_content = $home_page_content. ' <tr> <td class="homebox_style1" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head2" valign="top"><h2>'.$LeftBox3Heading.'</h2></td> </tr> <tr> <td class="box_text2" valign="top">'.$LeftBox3Content.'</td> </tr> </table> </td> </tr> <tr><td style="height:25px;"></td></tr>'; } if(trim($LeftBox4Heading) != "" and trim($LeftBox4Content) != "") { if(trim($LeftBox4ReadMore) != "") $link = " onmouseover=\"this.style.cursor='pointer'\" onclick=\"window.location='http://maintenancetraining.com/".$LeftBox4ReadMore."'\" >"; else $link = ">"; $home_page_content = $home_page_content. ' <tr> <td class="homebox_style1" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head2" valign="top"><h2>'.$LeftBox4Heading.'</h2></td> </tr> <tr> <td class="box_text2" valign="top">'.$LeftBox4Content.'</td> </tr> </table> </td> </tr> <tr><td style="height:25px;"></td></tr>'; } if(trim($LeftBox5Heading) != "" and trim($LeftBox5Content) != "") { if(trim($LeftBox5ReadMore) != "") $link = " onmouseover=\"this.style.cursor='pointer'\" onclick=\"window.location='http://maintenancetraining.com/".$LeftBox5ReadMore."'\" >"; else $link = ">"; $home_page_content = $home_page_content. ' <tr> <td class="homebox_style1" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head2" valign="top"><h2>'.$LeftBox5Heading.'</h2></td> </tr> <tr> <td class="box_text2" valign="top">'.$LeftBox5Content.'</td> </tr> </table> </td> </tr> <tr><td style="height:25px;"></td></tr> '; } $home_page_content = $home_page_content. ' <tr><td style="height:10px;"></td></tr> </table> </td> <td style="width:9px;"></td> <td style="width:432px; padding:10px; padding-top:15px;" class="content_bg" valign="top"> <table border="0" cellpadding="0" cellspacing="0">'; if(trim($CenterBox1Heading) != "" and trim($CenterBox1Content) != "") { if(trim($CenterBox1ReadMore) != "") $link = " onmouseover=\"this.style.cursor='pointer'\" onclick=\"window.location='http://maintenancetraining.com/".$CenterBox1ReadMore."'\" >"; else $link = ">"; $home_page_content = $home_page_content. ' <tr> <td class="homebox_style2" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head3" valign="top"><h2>'.$CenterBox1Heading.'</h2></td> </tr> <tr> <td class="box_text2" valign="top">'.$CenterBox1Content.'</td> </tr> </table> </td> </tr> <tr><td style="height:25px;"></td></tr> '; } if(trim($CenterBox2Heading) != "" and trim($CenterBox2Content) != "") { if(trim($CenterBox2ReadMore) != "") $link = " onmouseover=\"this.style.cursor='pointer'\" onclick=\"window.location='http://maintenancetraining.com/".$CenterBox2ReadMore."'\" >"; else $link = ">"; $home_page_content = $home_page_content. ' <tr> <td class="homebox_style2" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head3" valign="top"><h2>'.$CenterBox2Heading.'</h2></td> </tr> <tr> <td class="box_text2" valign="top">'.$CenterBox2Content.'</td> </tr> </table> </td> </tr> <tr><td style="height:25px;"></td></tr> '; } if(trim($CenterBox3Heading) != "" and trim($CenterBox3Content) != "") { if(trim($CenterBox3ReadMore) != "") $link = " onmouseover=\"this.style.cursor='pointer'\" onclick=\"window.location='http://maintenancetraining.com/".$CenterBox3ReadMore."'\" >"; else $link = ">"; $home_page_content = $home_page_content. ' <tr> <td class="homebox_style2" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head3" valign="top"><h2>'.$CenterBox3Heading.'</h2></td> </tr> <tr> <td class="box_text2" valign="top">'.$CenterBox3Content.'</td> </tr> </table> </td> </tr> <tr><td style="height:25px;"></td></tr> '; } if(trim($CenterBox4Heading) != "" and trim($CenterBox4Content) != "") { if(trim($CenterBox4ReadMore) != "") $link = " onmouseover=\"this.style.cursor='pointer'\" onclick=\"window.location='http://maintenancetraining.com/".$CenterBox4ReadMore."'\" >"; else $link = ">"; $home_page_content = $home_page_content. ' <tr> <td class="homebox_style2" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head3" valign="top"><h2>'.$CenterBox4Heading.'</h2></td> </tr> <tr> <td class="box_text2" valign="top">'.$CenterBox4Content.'</td> </tr> </table> </td> </tr> <tr><td style="height:25px;"></td></tr> '; } if(trim($CenterBox5Heading) != "" and trim($CenterBox5Content) != "") { if(trim($CenterBox5ReadMore) != "") $link = " onmouseover=\"this.style.cursor='pointer'\" onclick=\"window.location='http://maintenancetraining.com/".$CenterBox5ReadMore."'\" >"; else $link = ">"; $home_page_content = $home_page_content. ' <tr> <td class="homebox_style2" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head3" valign="top"><h2>'.$CenterBox5Heading.'</h2></td> </tr> <tr> <td class="box_text2" valign="top">'.$CenterBox5Content.'</td> </tr> </table> </td> </tr> <tr><td style="height:25px;"></td></tr> '; } $home_page_content = $home_page_content. ' </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_style1" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head2" 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_style1" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head2" 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_style1" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head2" 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($RightBox4Heading) != "" and trim($RightBox4Content) != "") { if(trim($RightBox4ReadMore) != "") $link = " onmouseover=\"this.style.cursor='pointer'\" onclick=\"window.location='http://maintenancetraining.com/".$RightBox4ReadMore."'\" >"; else $link = ">"; $home_page_content = $home_page_content. ' <tr> <td class="homebox_style1" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head2" valign="top"><h2>'.$RightBox4Heading.'</h2></td> </tr> <tr> <td class="box_text2" valign="top">'.$RightBox4Content.'</td> </tr> </table> </td> </tr> <tr><td style="height:25px;"></td></tr>'; } if(trim($RightBox5Heading) != "" and trim($RightBox5Content) != "") { if(trim($RightBox5ReadMore) != "") $link = " onmouseover=\"this.style.cursor='pointer'\" onclick=\"window.location='http://maintenancetraining.com/".$RightBox5ReadMore."'\" >"; else $link = ">"; $home_page_content = $home_page_content. ' <tr> <td class="homebox_style1" valign="top"'.$link.' <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="box_head2" valign="top"><h2>'.$RightBox5Heading.'</h2></td> </tr> <tr> <td class="box_text2" valign="top">'.$RightBox5Content.'</td> </tr> </table> </td> </tr> <tr><td style="height:25px;"></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("../home.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-mgt2.php'); header($url); } ?>