Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<div class="card-body p-1"><br> <div class="panel panel-primary"> <div class..

Decoded Output download

<div class="card-body p-1"><br> 
    <div class="panel panel-primary"> 
        <div class="tab-menu-heading"> 
            <div class="tabs-menu1"> 
                <!-- Tabs --> 
                <ul class="nav panel-tabs"> 
                    <?php 
                    // Mapping  
                    $monthCodes = [ 
                        ".." => "01", 
                        ".." => "02", 
                        ".." => "03", 
                        ".." => "04", 
                        ".." => "05", 
                        ".." => "06", 
                        ".." => "07", 
                        ".." => "08", 
                        ".." => "09", 
                        ".." => "10", 
                        ".." => "11", 
                        ".." => "12", 
                    ]; 
 
                    // Query  pm350_record 
                    $query = "SELECT `month`, `year`, `Current_Month` FROM `pm350_record` WHERE `Status` = 'Y'"; 
                    $result = mysqli_query($objCon, $query); 
 
                    if ($result && mysqli_num_rows($result) > 0) { 
                        while ($row = mysqli_fetch_assoc($result)) { 
                            $month = $row['month']; //  ".." 
                            $year = $row['year']; //  "2567" 
                            $currentMonth = $row['Current_Month']; //  Current_Month 
                            $yearShort = substr($year, 2, 2); //   "2567" -> "67" 
 
                            //   ".." -> "01" 
                            $monthNumber = isset($monthCodes[$month]) ? $monthCodes[$month] : "00"; 
 
                            //  class="active"  Current_Month = 'Y' 
                            $activeClass = $currentMonth === 'Y' ? 'class="active"' : ''; 
 
                            echo '<li >'; 
                            echo '<a href="#tab' . $monthNumber . $yearShort . '  " ' . $activeClass . ' data-toggle="tab">' . $month . ' ' . $yearShort . '</a>'; 
                            echo '</li>'; 
                        } 
                    } else { 
                        echo '<li></li>'; 
                    } 
                    ?> 
                </ul> 
            </div> 
        </div> 
        <div class="panel-body tabs-menu-body"> 
            <div class="tab-content"> 
               <?php 
               // Reset pointer  
               mysqli_data_seek($result, 0); 
               if ($result && mysqli_num_rows($result) > 0) { 
                   while ($row = mysqli_fetch_assoc($result)) { 
                       $month = $row['month']; //  ".." 
                       $year = $row['year']; //  "2567" 
                       $currentMonth = $row['Current_Month']; //  Current_Month 
                       $yearShort = substr($year, 2, 2); //   "2567" -> "67" 
 
                       //   ".." -> "01" 
                       $monthNumber = isset($monthCodes[$month]) ? $monthCodes[$month] : "00"; 
 
                       //  class="active"  Current_Month = 'Y' 
                       $activeClass = $currentMonth === 'Y' ? 'active' : ''; 
 
                       echo '<div class="tab-pane ' . $activeClass . '" id="tab' . $monthNumber . $yearShort . '">'; 
                       echo '<center> (PM) <br> ' . $month . ' ' . $yearShort . '</center>'; 
 
                       //  $monthNumber  $yearShort  round  "..67" 
                       $roundCode = $month . $yearShort; 
                       $queryData = "SELECT * FROM `newjob` WHERE `round` = '$roundCode'"; 
                       $resultData = mysqli_query($objCon, $queryData); 
 
                       echo '<div class="table-responsive m-t-40">'; 
                       echo '<table id="table_' . $monthNumber . $yearShort . '" class="display nowrap table table-hover table-striped table-bordered" cellspacing="0" width="100%">'; 
                       echo '<thead> 
                <tr> 
                    <th>#</th> 
                    <th><font size="3"></font></th> 
                    <th><font size="3"> PM</font></th> 
                    <th><font size="3"> PM</font></th> 
                    <th><font size="3"> PM</font></th> 
                    <th><font size="3"></font></th> 
                    <th><font size="3">PDF</font></th> 
                </tr> 
              </thead> 
              <tbody>'; 
                       if ($resultData && mysqli_num_rows($resultData) > 0) { 
                           while ($jobRow = mysqli_fetch_assoc($resultData)) { 
                               echo '<tr>'; 
                               echo '<td> 
                        <button type="button" class="btn btn-mini btn-info" onclick="window.open(\'edit_coj?id=' . 
                                   $jobRow['id'] . 
                                   '\')"> 
                            <i class="icon-pencil"></i><i class="fa fa-pencil-square-o"></i> 
                        </button> 
                      </td>'; 
 
                               //  Username 
                               echo '<td><font size="3">'; 
                               if (isset($objRUser) && $objRUser["Username"] === 'admin') { 
                                   echo '<a href="../backoffice/view_pmcoj?id=' . $jobRow['id'] . '" target="_black">' . $jobRow["form_organi"] . '</a>'; 
                               } else { 
                                   echo $jobRow["form_organi"]; 
                               } 
                               echo '</font></td>'; 
 
                               echo '<td><font size="3"><center>' . $jobRow['round'] . '</center></font></td>'; 
                               echo '<td align="center"><font size="3">' . $jobRow['coj_statusIn'] . '</font></td>'; 
                               echo '<td><font size="3">' . $jobRow['coj_datepm'] . '</font></td>'; 
                               echo '<td><font size="3">' . $jobRow['coj_In_name'] . '</font></td>'; 
 
                               //  PDF 
                               echo '<td> 
                        <a href="../view_reportPJA?id=' . 
                                   $jobRow['id'] . 
                                   '" target="_black"> 
                            <button type="button" class="btn btn-mini btn-secondary"> 
                                <i class="fa fa-file-pdf-o"></i> 
                            </button> 
                        </a> 
 
                        <a href="../view_reportPJB?id=' . 
                                   $jobRow['id'] . 
                                   '" target="_black"> 
                            <button type="button" class="btn btn-mini btn-secondary"> 
                                <i class="fa fa-file-pdf-o"></i> 
                            </button> 
                        </a> 
                      </td>'; 
                               echo '</tr>'; 
                           } 
                       } else { 
                           echo '<tr><td colspan="7" align="center"></td></tr>'; 
                       } 
                       echo '</tbody></table></div></div>'; 
                   } 
               } 
               ?> 
 
 
            </div> 
        </div> 
    </div> 
</div> 

Did this file decode correctly?

Original Code

<div class="card-body p-1"><br>
    <div class="panel panel-primary">
        <div class="tab-menu-heading">
            <div class="tabs-menu1">
                <!-- Tabs -->
                <ul class="nav panel-tabs">
                    <?php
                    // Mapping 
                    $monthCodes = [
                        ".." => "01",
                        ".." => "02",
                        ".." => "03",
                        ".." => "04",
                        ".." => "05",
                        ".." => "06",
                        ".." => "07",
                        ".." => "08",
                        ".." => "09",
                        ".." => "10",
                        ".." => "11",
                        ".." => "12",
                    ];

                    // Query  pm350_record
                    $query = "SELECT `month`, `year`, `Current_Month` FROM `pm350_record` WHERE `Status` = 'Y'";
                    $result = mysqli_query($objCon, $query);

                    if ($result && mysqli_num_rows($result) > 0) {
                        while ($row = mysqli_fetch_assoc($result)) {
                            $month = $row['month']; //  ".."
                            $year = $row['year']; //  "2567"
                            $currentMonth = $row['Current_Month']; //  Current_Month
                            $yearShort = substr($year, 2, 2); //   "2567" -> "67"

                            //   ".." -> "01"
                            $monthNumber = isset($monthCodes[$month]) ? $monthCodes[$month] : "00";

                            //  class="active"  Current_Month = 'Y'
                            $activeClass = $currentMonth === 'Y' ? 'class="active"' : '';

                            echo '<li >';
                            echo '<a href="#tab' . $monthNumber . $yearShort . '  " ' . $activeClass . ' data-toggle="tab">' . $month . ' ' . $yearShort . '</a>';
                            echo '</li>';
                        }
                    } else {
                        echo '<li></li>';
                    }
                    ?>
                </ul>
            </div>
        </div>
        <div class="panel-body tabs-menu-body">
            <div class="tab-content">
               <?php
               // Reset pointer 
               mysqli_data_seek($result, 0);
               if ($result && mysqli_num_rows($result) > 0) {
                   while ($row = mysqli_fetch_assoc($result)) {
                       $month = $row['month']; //  ".."
                       $year = $row['year']; //  "2567"
                       $currentMonth = $row['Current_Month']; //  Current_Month
                       $yearShort = substr($year, 2, 2); //   "2567" -> "67"

                       //   ".." -> "01"
                       $monthNumber = isset($monthCodes[$month]) ? $monthCodes[$month] : "00";

                       //  class="active"  Current_Month = 'Y'
                       $activeClass = $currentMonth === 'Y' ? 'active' : '';

                       echo '<div class="tab-pane ' . $activeClass . '" id="tab' . $monthNumber . $yearShort . '">';
                       echo '<center> (PM) <br> ' . $month . ' ' . $yearShort . '</center>';

                       //  $monthNumber  $yearShort  round  "..67"
                       $roundCode = $month . $yearShort;
                       $queryData = "SELECT * FROM `newjob` WHERE `round` = '$roundCode'";
                       $resultData = mysqli_query($objCon, $queryData);

                       echo '<div class="table-responsive m-t-40">';
                       echo '<table id="table_' . $monthNumber . $yearShort . '" class="display nowrap table table-hover table-striped table-bordered" cellspacing="0" width="100%">';
                       echo '<thead>
                <tr>
                    <th>#</th>
                    <th><font size="3"></font></th>
                    <th><font size="3"> PM</font></th>
                    <th><font size="3"> PM</font></th>
                    <th><font size="3"> PM</font></th>
                    <th><font size="3"></font></th>
                    <th><font size="3">PDF</font></th>
                </tr>
              </thead>
              <tbody>';
                       if ($resultData && mysqli_num_rows($resultData) > 0) {
                           while ($jobRow = mysqli_fetch_assoc($resultData)) {
                               echo '<tr>';
                               echo '<td>
                        <button type="button" class="btn btn-mini btn-info" onclick="window.open(\'edit_coj?id=' .
                                   $jobRow['id'] .
                                   '\')">
                            <i class="icon-pencil"></i><i class="fa fa-pencil-square-o"></i>
                        </button>
                      </td>';

                               //  Username
                               echo '<td><font size="3">';
                               if (isset($objRUser) && $objRUser["Username"] === 'admin') {
                                   echo '<a href="../backoffice/view_pmcoj?id=' . $jobRow['id'] . '" target="_black">' . $jobRow["form_organi"] . '</a>';
                               } else {
                                   echo $jobRow["form_organi"];
                               }
                               echo '</font></td>';

                               echo '<td><font size="3"><center>' . $jobRow['round'] . '</center></font></td>';
                               echo '<td align="center"><font size="3">' . $jobRow['coj_statusIn'] . '</font></td>';
                               echo '<td><font size="3">' . $jobRow['coj_datepm'] . '</font></td>';
                               echo '<td><font size="3">' . $jobRow['coj_In_name'] . '</font></td>';

                               //  PDF
                               echo '<td>
                        <a href="../view_reportPJA?id=' .
                                   $jobRow['id'] .
                                   '" target="_black">
                            <button type="button" class="btn btn-mini btn-secondary">
                                <i class="fa fa-file-pdf-o"></i>
                            </button>
                        </a>

                        <a href="../view_reportPJB?id=' .
                                   $jobRow['id'] .
                                   '" target="_black">
                            <button type="button" class="btn btn-mini btn-secondary">
                                <i class="fa fa-file-pdf-o"></i>
                            </button>
                        </a>
                      </td>';
                               echo '</tr>';
                           }
                       } else {
                           echo '<tr><td colspan="7" align="center"></td></tr>';
                       }
                       echo '</tbody></table></div></div>';
                   }
               }
               ?>


            </div>
        </div>
    </div>
</div>

Function Calls

None

Variables

None

Stats

MD5 759e8da32e3f60afd6c685b04b38d655
Eval Count 0
Decode Time 59 ms