Implemented how can i work my code?

troy

New Member
#1
openlitespeed 1.4.16
php 7.0.4


HTML:
<html>
<head>
<?php
include_once("../../Include/include_admin.php");
?>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $BRAWSER_ENCODER;?>">
<link href="../css/admin.css" rel="stylesheet" type="text/css">
<style type="text/css">
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
body,td,th {
    color: #666666;
    font-family: 돋움;
    font-size: 12px;
}
</style>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" class="Headline_table">
  <tr>
    <td class="Headline_td_2">
        <table width="1024" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="152"><a href='../A_main.html' target='_top'><img src="../images/img/top_logo.gif" width="152" height="64" border="0" alt='로고'></a></td>
                <td width="848" align="right">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="20%" align="right"><?php include "../Admin_main/top_but.php";?></td>
                        <td>
                            <a href="../A_main.html" target="_top"><img src="../images/img/btn_top_main.gif" width="74" height="19" border="0" alt='관리자 메인' align='absmiddle'></a><a href="<?php echo $SITE_URL; ?>" target="_blank"><img src="../images/img/btn_top_myshop.gif" width="116" height="19" hspace="6" border='0' alt='나의쇼핑몰 바로가기' align='absmiddle'></a><a href="admin_logout.php" target='_top'><img src="../images/img/top_logout.gif" width="58" height="19" border='0' alt='로그아웃' align='absmiddle'></a></td>
                     </tr>
                      <tr>
                            <td class="Headline_td_3" colspan='2' valign='bottom' height='30' background='../images/img/bg_top.gif'>
                                <iframe name='infoframe' src='../frame_set/left_info.php' width='500' height='12' scrolling='no' frameBorder="0"></iframe>
                            </td>
                        </tr>
                    </table>
                </td>
              </tr>

            </table>

    </td>
  </tr>
<tr>
    <td style="background-image:url('../images/img/bg_menu.gif');">
    <?php
    if( isset($_SESSION['OtherAdmin_UID']) && isset($_SESSION['OtherAdmin_PWD']) && isset($_SESSION['OtherAdmin_URL']) ) {

        $authority_array = explode('|', base64_decode($_SESSION['OtherAdmin_AUTHORITY']) );
        for($ki=0; $ki<count($ATopTitle); $ki++){
            $mid    = $ki < 9 ? '0'.($ki+1) : ($ki+1);
            if($authority_array[$ki] == 'Y'){
                echo "<a href='".$ATopLink[$ki]."' target='main_center'><img src='../images/img/menu".$mid.".gif' border='0' title='".$ATopTitle[$ki]."'></a>";
            }
        }

    }else {
        for($ki=0; $ki<count($ATopTitle); $ki++){
            $mid    = $ki < 9 ? '0'.($ki+1) : ($ki+1);
            echo "<a href='".$ATopLink[$ki]."' target='main_center'><img src='../images/img/menu".$mid.".gif' border='0' title='".$ATopTitle[$ki]."'></a>";
        }
    }
    ?>
    </td>
</tr>
</table>
<iframe src='../../Include/location_reload.html' frameborder='0' width='0' height='0'></iframe>

<iframe name="cart_quantity_check" src='../Admin_main/cart_quantity_check.php' height="0" width='0' frameborder='0'></iframe>

<?php if($setting_row['pg_company'] == "KCP" && ($setting_row['payment_way'] == "C" || $setting_row['payment_way'] == "CB") && $setting_row['pg_id'] != "" ){?>
<iframe name="kcp_result_check" src='../Admin_main/kcp_result_check.php' height="0" width='0' frameborder='0'></iframe>
<?php } ?>

<?php
include_once '../../Include/mall_type_query_use.php';

$query = "select member_gradeyn from NICECART_SETTING where id='".$setting_id."'";
$result = $db_conn->query($query) or die("QUERY ERROR: $query");
$num = mysqli_num_rows($result);
if($num > 0) {
    $row = mysqli_fetch_array($result);
    $member_gradeyn        = $row['member_gradeyn'];

}else{
    $member_gradeyn = 'N';
}

if( $member_gradeyn=='Y' && @mysqli_num_rows(@$db_conn->query("select count(id) from NICECART_MEMBER") > 0 ) {

        $year = date('Y', time());
        $month = date('m', time());
        $date = date('d', time());

        $yearmonth = $year.$month;

        $count = 0;       
        $file_name = 'GradeUpgrade.ini';
        $path = "../Memberview/gradehistory/$file_name";

        if( file_exists($path)) {

                $filesize = filesize($path);
                if( $filesize < 1 ){
                    $count++;
                }else{
                    $fopen        = fopen($path,"r");
                    $fpsize        = filesize($path);
                    $comments    = trim( fread($fopen, $fpsize) );
                    fclose($fopen);

                    $o_year        = substr($comments, 0, 4);
                    $o_month    = substr($comments, 4, 2);
                    $o_date        = substr($comments, 6, 2);

                    $o_yearmonth = $o_year.$o_month;

                    if( $yearmonth > $o_yearmonth && $date >= 15 ) {
                            $count++;
                    }
                }

        }else{

                $fopen = fopen($path,"w+");
                fclose($fopen);
                @chmod($path, 0666);

                $count++;
        }

        if($count > 0) {
            echo "
                <script type='text/javascript'>
                var url = '../Memberview/grade_updateall_shell.html';
                var newwin = window.open(url, '', 'toolbar=no,location=no,directories=no,status=off,menubar=no,scrollbars=no,resizable=yes,width=400,height=300');
                if(newwin == null){
                    alert('DO NOT CLOSE.');
                }
                </script>
            ";
        }
}
?>
</body>
</html>
if and echo tag is not work
how should I do?
 

Attachments

Top