shell bypass 403
<?php if (!defined('SITE')) exit('Access Denied'); $id = $base['get']['catag']; if ($id == "") { $result = $conn->nativeQuerySelect("SELECT * FROM catagories_menu WHERE `group` = 3 ORDER BY `sort` ASC LIMIT 1", null); $id = $result[0]['id']; $base['get']['catag'] = $id; $base['get']['cname'] = 'Graphic'; $base['get']['sname'] = $result[0]['name']; } $projectMenu = getMenuGraphic($id); $result = getProjectList($id); if (count($result) != 0) { $data .= '<div id="projectList">'; $data .= '<div id="scroller">'; foreach ($result as $row) { //เอาดาต้าที่จะแสดงยัดใส่ array ตัวใหม่ หากจะเพิ่มอะไรต้องเพิ่มที่นี่ด้วย เพื่อ sort data $detail = splitformatToarrayData(getProjectDetail($row['slide_cover_detail']), true); $sortData[] = array($detail[4], $row["slide_id"], $detail[0], $detail[1], $detail[2], $detail[3], $row['slide_order']); } usort($sortData, "sortByOption"); foreach ($sortData as $key => $value) { $projectId[] = $value[1]; $data .= '<li>'; $data .= '<a href="index.php?mod=viewgallery&catag=' . $base['get']['catag'] . '&cname=' . $base['get']['cname'] . '&sname=' . $base['get']['sname'] . '&project=' . $value[1] . '&tag=' . $value[2] . '">'; $data .= $value[2] . ' ' . $value[3]; $data .= '<div style="float:right">' . $value[0] . '</div>'; $data .= '</a>'; $data .= '</li>'; } $data .= '</ul>'; $data .= '</div>'; $data .= '</div>'; } else { $data = ". . . No data . . ."; } setcookie("projectId", arrayToSplitFormat($projectId)); $base['data']['left'] = '<div id="projectMenu">' . $projectMenu . '</div>'; $base['data']['right'] = $data; // template('viewproject'); ?>