}else{ /*if(move_uploaded_file($tmpfile,$myfile)){ $resJson = array( 'headurl' => "http://180.153.40.16:600/zaina/".$myfile, 'nickname' => "", 'age' => "", 'sex' => '' ); json('yes','上传成功',$resJson); }else{ json('no','update faile',''); }* / json('no','上传失败'.$uppic.$is_weed['headurl'],''); } }*/ $fid = get_fid(); if (empty($fid)) { //抽空吧这里改成存储到本服务器 json('no', '上传失败-图片服务器不可用', ''); } //×××××××××××××××××待做查看本机通过公网访问图片服务器的收到地址 $uppic = update_pic($post_data, 'http://172.18.1.23:8081/' . $fid); $uppicobj = json_decode($uppic); if ($uppicobj->size > 0) { $new_pic = 'http://file.fujinde.com:8081/' . $fid; $resJson = array('headurl' => $new_pic, 'nickname' => "", 'age' => "", 'sex' => '', 'zhiye' => "", 'qianming' => ""); /****方案二,图片上传后吧原来的删掉***/ $is_weed = $db->row_select_one("user", "umd5 = '{$u_pic_user}'", "headurl"); $pos = strpos($is_weed['headurl'], "file.fujinde.com:8081"); if ($pos) { //print_r(delete_pic($is_weed['headurl']));
print "<div id=\"textImage{$bid}\" style=\"position:absolute; top:" . $box['tly'] / $zoom . "px; left:" . $box['tlx'] / $zoom . "px; width:" . ($box['brx'] - $box['tlx']) / $zoom . "px; height:" . ($box['bry'] - $box['tly']) / $zoom . "px; background-color: " . BOX_BACKGROUND_COLOUR . "; text-align:center; font-weight:bold;\" onclick=\"textClick('{$bid}','{$bbgid}');\">{$val}</div>"; } } } } } print "<div><input type=\"hidden\" name=\"piddone\" value=\"{$pid}\"/></div>"; print "</form>"; } session_start(); $vid = get_vid(); if ($vid == false) { print T_("Please log in"); exit; } $fid = get_fid($vid); if (isset($_GET['centre']) && isset($_GET['fid']) && isset($_GET['pid'])) { $pid = $_GET['pid']; $sql = "UPDATE formpages\r\n\t\tSET offx = 0, offy = 0, costheta = 1, sintheta = 0, scalex = 1, scaley = 1, `centroidy` = (SELECT height / 2 FROM pages WHERE pid = '{$pid}'), `centroidx` = (SELECT width / 2 FROM pages WHERE pid = '{$pid}') \r\n\t\tWHERE fid = '{$fid}'\r\n\t\tAND pid = '{$pid}'"; $db->Execute($sql); } if (!empty($fid)) { $qid_desc = get_qid_description($fid); $qid = $qid_desc['qid']; $description = $qid_desc['description']; } if (isset($_POST['complete']) && isset($_SESSION['boxes'])) { foreach ($_SESSION['boxes'] as $key => $box) { $sql = ""; if ($box['btid'] == 1 || $box['btid'] == 2) { //delete old data
<?php require_once dirname(__FILE__) . "/" . 'global.php'; $fid = intval($fid); $rows > 0 || ($rows = 7); $leng > 0 || ($leng = 60); unset($SQL, $show); //热门专题,推荐专题,最新专题,没用使用缓存 if ($type == 'hot' || $type == 'com' || $type == 'new' || $type == 'lastview') { if ($fid) { $f_id = get_fid($fid); $SQL = " yz=1 AND (" . implode("OR", $f_id) . ") "; } else { $SQL = " yz=1 "; } if ($type == 'com') { $SQL .= " AND levels=1 "; $ORDER = ' list '; } elseif ($type == 'hot') { $ORDER = ' hits '; } elseif ($type == 'new') { $ORDER = ' list '; } elseif ($type == 'lastview') { $ORDER = ' lastview '; } $SQL = " WHERE {$SQL} ORDER BY {$ORDER} DESC LIMIT {$rows}"; $which = '*'; $listdb = list_special($SQL, $which, $leng); foreach ($listdb as $key => $rs) { $target = $rs[target] ? '_blank' : '_self'; $show .= "<div>·<A target='{$target}' HREF='{$webdb['www_url']}/do/showsp.php?fid={$rs['fid']}&id={$rs['id']}' title='{$rs['full_title']}'>{$rs['title']}</A></div>";