| 12345678910111213141516171819202122232425262728 |
- <?
- error_reporting(NULL);
- ini_set('display_errors','Off');
- include("../config/conn.php");
- include("../config/function.php");
- $wzget=$_SERVER['PHP_SELF'];
- if(empty($wzget)){echo "ok";}
- $ht1=preg_split("/\//",$wzget);
- $houtai=$ht1[count($ht1)-2];
- $sj=date("Y-m-d H:i:s");
- $zip_filename = "gx.zip";
- $zip_filepath = $zip_filename;
- if(!is_file($zip_filepath))
- {die('Error Code:1002');}
- $zip = new ZipArchive();
- $rs = $zip->open($zip_filepath);
- if($rs !== TRUE)
- {die('Error Code:1001');}
- $zip->extractTo("../");
- $zip->close();
- @recurse_copy("../yjadmin/","../".$houtai."/");
- @delDirAndFile("../yjadmin/");
- @htmlget(weburl."update.php");
- @delFile("../update.php");
- delFile("gx.zip");
- intotable("yjcode_update","sj","'".sqlzhuru($_GET[sersj])."'");
- echo "ok";
- ?>
|